Fix variant janus size prefix
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 13 Feb 2011 21:30:59 +0000 (22:30 +0100)
committerArun Persaud <apersaud@lbl.gov>
Tue, 15 Feb 2011 06:57:44 +0000 (22:57 -0800)
The default board size of Janus Chess was not consistently taken to be
10x8, which resulted the name to be sent as 10x8+0_janus to the engine.

backend.c

index 17e77ae..ae15f1a 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -8892,7 +8892,7 @@ InitChessProgram(cps, setup)
       if( gameInfo.variant == VariantBughouse || gameInfo.variant == VariantCrazyhouse )
            overruled = gameInfo.boardWidth != 8 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 5;
       if( gameInfo.variant == VariantCapablanca || gameInfo.variant == VariantCapaRandom ||
-                               gameInfo.variant == VariantGothic  || gameInfo.variant == VariantFalcon )
+          gameInfo.variant == VariantGothic || gameInfo.variant == VariantFalcon || gameInfo.variant == VariantJanus )
            overruled = gameInfo.boardWidth != 10 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 0;
       if( gameInfo.variant == VariantCourier )
            overruled = gameInfo.boardWidth != 12 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 0;