Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw by stalemate #152

Closed
lrozenblyum opened this issue Mar 22, 2015 · 2 comments
Closed

Draw by stalemate #152

lrozenblyum opened this issue Mar 22, 2015 · 2 comments
Assignees
Milestone

Comments

@lrozenblyum
Copy link
Owner

5.2 a) The game is drawn when the player to move has no legal move and his king is not
in check. The game is said to end in ‘stalemate’. This immediately ends the game,
provided that the move producing the stalemate position was in accordance with
Article 3 and Articles 4.2 – 4.7.

@lrozenblyum
Copy link
Owner Author

Informing Winboard about state should be done according to the rule:

RESULT {COMMENT}
When your engine detects that the game has ended by rule, your engine must output a line of the form "RESULT {comment}" (without the quotes), where RESULT is a PGN result code (1-0, 0-1, or 1/2-1/2), and comment is the reason. Here "by rule" means that the game is definitely over because of what happened on the board. In normal chess, this includes checkmate, stalemate, triple repetition, the 50 move rule, or insufficient material; it does not include loss on time or the like. Examples:
0-1 {Black mates}
1-0 {White mates}
1/2-1/2 {Draw by repetition}
1/2-1/2 {Stalemate}

@lrozenblyum lrozenblyum self-assigned this Jul 25, 2016
@lrozenblyum
Copy link
Owner Author

  1. generate correct position state : terminal, reason of termination, no winning side
  2. no legal moves after stalemate
  3. transfer to winboard
  4. receive from winboard

@lrozenblyum lrozenblyum mentioned this issue Jul 26, 2016
lrozenblyum added a commit that referenced this issue Jul 26, 2016
@lrozenblyum lrozenblyum added this to the 0.1 milestone Feb 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant