From: H.G. Muller Date: Sat, 6 Jun 2009 16:00:25 +0000 (-0700) Subject: fixed adjudicating probelm in Shantranj X-Git-Tag: v4.4.0.alpha4~1 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=cc5c5550e44afbcc5a1952a574c211b80f63ebbd;p=xboard.git fixed adjudicating probelm in Shantranj Refrain from adjudicating a draw based on insufficient mating material (except bare King vs bare King) in Shatranj (where in this case you can still win by baring the opponent's King). --- diff --git a/backend.c b/backend.c index 910d1d8..0e36ec2 100644 --- a/backend.c +++ b/backend.c @@ -5881,7 +5881,8 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h } } - if( NrPieces == 2 || gameInfo.variant != VariantXiangqi && + if( NrPieces == 2 || gameInfo.variant != VariantXiangqi && + gameInfo.variant != VariantShatranj && // [HGM] baring will remain possible (NrPieces == 3 && NrWN+NrBN+NrWB+NrBB == 1 || NrPieces == NrBB+NrWB+2 && bishopsColor != 3)) // [HGM] all Bishops (Ferz!) same color { /* KBK, KNK, KK of KBKB with like Bishops */