Created
August 5, 2020 21:49
-
-
Save parzibyte/4f43881cc0ea0ef8c6848b5607c110fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isTie(board) { | |
for (let y = 0; y < ROWS; y++) { | |
for (let x = 0; x < COLUMNS; x++) { | |
const currentCell = board[y][x]; | |
if (currentCell === EMPTY_SPACE) { | |
return false; | |
} | |
} | |
} | |
return true; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment