How do I make a two dimensional array an if statement.
for row in range(6):
for column in range(7):
if board[row][column] > 0:
Draw = True
I have a grid of blank squares, 7 by 6, and if a square is clicked its given a value of 1 and if not it stays 0. When all the squares have been clicked making the now 1 I want Draw = True, but this statement above finds the row and column I've just chosen rather then the entire grid.
Aucun commentaire:
Enregistrer un commentaire