Fix initial holdings ICS seirawan games
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 28 Dec 2011 12:35:10 +0000 (13:35 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Wed, 28 Dec 2011 12:55:35 +0000 (13:55 +0100)
backend.c

index bec700a..b6a27ab 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -4431,6 +4431,13 @@ ParseBoard12(string)
            board[k][1] = board[k][BOARD_WIDTH-2] = (ChessSquare) 0;;
       }
     }
+    if(moveNum==0 && gameInfo.variant == VariantSChess) {
+      board[5][BOARD_RGHT+1] = WhiteAngel;
+      board[6][BOARD_RGHT+1] = WhiteMarshall;
+      board[1][0] = BlackMarshall;
+      board[2][0] = BlackAngel;
+      board[1][1] = board[2][1] = board[5][BOARD_RGHT] = board[6][BOARD_RGHT] = 1;
+    }
     CopyBoard(boards[moveNum], board);
     boards[moveNum][HOLDINGS_SET] = 0; // [HGM] indicate holdings not set
     if (moveNum == 0) {