fairy-stockfish / Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
https://fairy-stockfish.github.io/
GNU General Public License v3.0
620 stars 197 forks source link

Elimination Chess mismatch with chess.com version #645

Open vasyavasyalin1987 opened 1 year ago

vasyavasyalin1987 commented 1 year ago

There are a few key differences between chess.com's Elimination Chess version and current Elimination Chess version. Here are the rules as in chess.com's version and the discrepancy:

  1. Stalemate counts as a win for the stalemated player, even if they have only one piece. Stalemate precedes extinction by one ply.
  2. The game is not declared as extinction as long as the remaining player can do at least one capture.

As far as I know, it isn't currently possible to specify that stalemate precedes extinction and no captures must be required for an extinction. It would be nice to see Fairy-Stockfish be able to analyze chess.com's Elimination Chess, since a lot depends on the endgames. A few PGN4s of chess.com:

[StartFen4 "R-0,1,0,1-1,1,1,1-1,1,1,1-0,0,0,0-0-{'dim':'8x8','wb':true}-x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,8,x,x,x/x,x,x,8,x,x,x/x,x,x,1,yP,6,x,x,x/x,x,x,1,rP,3,yN,2,x,x,x/x,x,x,8,x,x,x/x,x,x,3,rR,4,x,x,x/x,x,x,8,x,x,x/x,x,x,8,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x"]
[Variant "FFA"]
[RuleVariants "BarePieceLoses EnPassant Giveaway Play4Mate"]

1. Rg6-h6 .. Ni8xRh6
2. S
[StartFen4 "R-0,1,0,1-1,1,1,1-1,1,1,1-0,0,0,0-0-{'dim':'8x8','wb':true}-x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,8,x,x,x/x,x,x,4,yB,3,x,x,x/x,x,x,8,x,x,x/x,x,x,8,x,x,x/x,x,x,6,yN,1,x,x,x/x,x,x,3,rR,2,yP,1,x,x,x/x,x,x,8,x,x,x/x,x,x,8,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x/x,x,x,x,x,x,x,x,x,x,x,x,x,x"]
[Variant "FFA"]
[RuleVariants "BarePieceLoses EnPassant Giveaway Play4Mate"]

1. Rg6xj6 .. Bh10-i9
2. Rj6xNj7 .. Bi9-j8
3. Rj7xBj8S
ianfab commented 1 year ago

Thanks, I was not aware of this rule. Shatranj has a very similar rule that the side with the bare king still has one more move to capture the last piece of the opponent, I.e., you can only claim the extinction on your own move. This can be enabled with extinctionClaim = true and should mostly address these differences. There might just be the scenario of multiple captures in a row that might still differ.

Edit: So for completeness my suggestion would be to try

[elimination:giveaway]
extinctionValue = loss
stalemateValue = win
extinctionPieceCount = 1
extinctionClaim = true