Open gbtami opened 4 weeks ago
This is the wrong configuration in variants.cpp for shatranj
. It also happens for all other variants that sets the following parameters:
v->extinctionValue = -VALUE_MATE;
v->extinctionClaim = true;
v->extinctionPieceTypes = piece_set(ALL_PIECES);
v->extinctionPieceCount = 1;
v->extinctionOpponentPieceCount = 2;
For example, courier
also has this problem.
This means that when it's a player to move and that player only has 1 piece on board while the opponent has 2 pieces on board, that player loses. This rule probably nullifies the K vs K draw adjudication.
If I add this two cases to test_game_result(), the first will be OK but the second fails. K vs K should be adjudicated as draw.
Result