You are viewing a single thread.
View all comments View context

Stalemate is after 3 repeat moves, so no.

permalink
report
parent
reply
10 points

Itโ€™s not just repeated moves, a draw can be called if the board is in the same state 3 times at all during the game; if you get to the same position 3 times using different moves that still counts, even if it was a white move the first two times and a black move the third.

The game also ends after 50 moves with no captures or pawn moves so you canโ€™t play indefinitely by just avoiding those board states. Interestingly those two moves also make it impossible to return to a previous board state (pawns canโ€™t move backwards, extra pieces are never added) so if youโ€™re enforcing both rules in code you can safely discard previous board states every time you reset the move counter.

permalink
report
parent
reply
4 points

But itโ€™s a state machine, and you could easily contrive scenarios for infinite moves, without stalemate.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 3.8K

    Monthly active users

  • 1.6K

    Posts

  • 36K

    Comments