Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/empate.js

Created Aug 5, 2020
Embed
What would you like to do?
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