Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 2, 2020 18:23
Embed
What would you like to do?
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