After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766005 - Support new automatic draw rules
Support new automatic draw rules
Status: RESOLVED FIXED
Product: gnome-chess
Classification: Applications
Component: General
3.20.x
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-chess-maint
gnome-chess-maint
Depends on:
Blocks:
 
 
Reported: 2016-05-04 20:16 UTC by Michael Catanzaro
Modified: 2017-01-22 21:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support new fivefold repetition and 75 move draw conditions (4.60 KB, patch)
2016-05-04 20:20 UTC, Michael Catanzaro
committed Details | Review

Description Michael Catanzaro 2016-05-04 20:16:39 UTC
Thanks to Wikipedia I found that FIDE changed the rules for draws slightly, to add automatic draws without need for a player to claim draws in pedantic situations. See http://www.fide.com/component/handbook/?id=171

9.6 If one or both of the following occur(s) then the game is drawn:
 * the same position has appeared, as in 9.2b, for at least five consecutive alternate moves by each player.
 * any consecutive series of 75 moves have been completed by each player without the movement of any pawn and without any capture. If the last move resulted in checkmate, that shall take precedence.

Let's implement this.
Comment 1 Michael Catanzaro 2016-05-04 20:20:55 UTC
Created attachment 327317 [details] [review]
Support new fivefold repetition and 75 move draw conditions

On July 1, 2014 the FIDE Laws of Chess were updated to add two new
automatic draw conditions. These are the same as the threefold
repetition and 50 move rules, except they take effect automatically
rather than optionally.

http://www.fide.com/component/handbook/?id=171&view=article
Comment 2 Michael Catanzaro 2017-01-22 15:02:40 UTC
Attachment 327317 [details] pushed as 19a65b0 - Support new fivefold repetition and 75 move draw conditions
Comment 3 Piotr Drąg 2017-01-22 17:07:53 UTC
This patch breaks the string freeze. I hope you could make a gnome-3-22 branch.
Comment 4 Michael Catanzaro 2017-01-22 20:51:22 UTC
Whoops, done.
Comment 5 Piotr Drąg 2017-01-22 21:07:22 UTC
Thank you!