tentative de champ d'index ? (valeur nulle)

Je ne sais pas où est le problème. Quelqu'un sait pourquoi?

function check(board, color, row, col)
--if same color, change tile to "o"

if board[row][col] == color then -- attempt to index nil?
    board[row][col] = "o"
    count = count + 1
    return "o"
end

return

fin

InformationsquelleAutor Scicare | 2012-02-22