X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=0e36ec2b3452c8272ce08e964a5b2e20099c455b;hb=73b4112daf718e68b1b60db8a304c4f9a930c703;hp=910d1d800efafc816cefa79fa470760258cb8011;hpb=570f0d333ffba03730d5bc5a69ef5a509247104f;p=xboard.git 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 */