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

Checkmate #145

Closed
lrozenblyum opened this issue Feb 8, 2015 · 4 comments
Closed

Checkmate #145

lrozenblyum opened this issue Feb 8, 2015 · 4 comments

Comments

@lrozenblyum
Copy link
Owner

Win Conditions. Checkmate

5.1. a) The game is won by the player who has checkmated his opponent’s king. This immediately ends the game, provided that the move producing the checkmate position was in accordance with Article 3 and Articles 4.2 – 4.7.

@lrozenblyum
Copy link
Owner Author

Citing 1.2 "The objective of each player is to place the opponent’s king ‘under attack’ in such a way that the opponent has no legal move. The player who achieves this goal is said to have ‘checkmated’ the opponent’s king and to have won the game"

@lrozenblyum
Copy link
Owner Author

Glossary
checkmate: 1.2. Where the king is attacked and cannot parry the threat. In notation ++ or #.

@lrozenblyum
Copy link
Owner Author

TODO:

  • introduce terminal state - Position which has no allowed moves from
  • inform Winboard about this state
  • get information about checkmate from Winboard
  • learn evaluators if needed

@lrozenblyum lrozenblyum mentioned this issue Feb 8, 2015
@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 mentioned this issue Mar 1, 2015
@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