I have a tic tac toe board and before i can check for victory conditions, I check if the objects stored in a set at board[][] are null.
For example:
if(board[0][j] == null || board[1][j] == null || board[2][j] == null)//and so on
//do something
else
//proceed with row evaluation
Aucun commentaire:
Enregistrer un commentaire