From cc5c5550e44afbcc5a1952a574c211b80f63ebbd Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 6 Jun 2009 09:00:25 -0700 Subject: [PATCH] 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). --- backend.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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 */ -- 1.7.0.4