dejan-xd / Chess_DSL

MIT License
0 stars 0 forks source link

Threefold repetition and fifty move rules #51

Closed dejan-xd closed 2 years ago

dejan-xd commented 2 years ago

Potrebno je ubaciti threefold repetition i fifty move pravila u igru.

In chess, the threefold repetition rule states that a player may claim a draw if the same position occurs three times. The rule is also known as repetition of position and, in the USCF rules, as triple occurrence of position.[1] Two positions are by definition "the same" if the same types of pieces occupy the same squares, the same player has the move, the remaining castling rights are the same and the possibility to capture en passant is the same. The repeated positions need not occur in succession. The reasoning behind the rule is that if the position occurs three times, no real progress is being made and the game could hypothetically continue indefinitely.

The fifty-move rule in chess states that a player can claim a draw if no capture has been made and no pawn has been moved in the last fifty moves (for this purpose a "move" consists of a player completing a turn followed by the opponent completing a turn). The purpose of this rule is to prevent a player with no chance of winning from obstinately continuing to play indefinitely[1] or seeking to win by tiring the opponent.