Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 2, 2020 18:23
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/da2db5bd81afb20f0465c0109cbd07df to your computer and use it in GitHub Desktop.
Save parzibyte/da2db5bd81afb20f0465c0109cbd07df to your computer and use it in GitHub Desktop.
playerLoses() {
// Check if there's something at Y 1. Maybe it is not fair for the player, but it works
for (const point of this.existingPieces[1]) {
if (point.taken) {
return true;
}
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment