Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 5, 2020 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4f43881cc0ea0ef8c6848b5607c110fb to your computer and use it in GitHub Desktop.
Save parzibyte/4f43881cc0ea0ef8c6848b5607c110fb to your computer and use it in GitHub Desktop.
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