Implement sittuyin stalemate rule (#14)
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 4 Mar 2019 19:22:44 +0000 (20:22 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 4 Mar 2019 20:06:07 +0000 (21:06 +0100)
commitcca5d56e33e8cc0cf06938abb0269aff0a7ce96f
treebebcd9c7d9aa6f959f8b926cc9301a5b6f68290b
parentb2d89b1c685f47549aa0927fceb09c58482b40bd
Implement sittuyin stalemate rule (#14)

Taking a promotion to avoid stalemate is optional (rule 3.9 c.7).

Example:
setoption name multipv value 20
setoption name UCI_Variant value sittuyin
position fen k5PK/3r4/8/8/8/8/8/8 b - - 0 1
go depth 1

No functional change for other variants.
src/position.cpp