Fix setting up of variants normal and lion
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 22 Oct 2013 17:59:27 +0000 (19:59 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 22 Oct 2013 17:59:27 +0000 (19:59 +0200)
The internal name of the Queen should be FK.

hachu.c

diff --git a/hachu.c b/hachu.c
index 564ad9a..3b7a4a3 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -369,23 +369,23 @@ PieceDesc taikyokuPieces[] = {
 };\r
 \r
 PieceDesc chessPieces[] = {\r
-  {"Q", "",  950, { X,X,X,X,X,X,X,X } },\r
+  {"FK", "", 950, { X,X,X,X,X,X,X,X } },\r
   {"R", "",  500, { X,0,X,0,X,0,X,0 } },\r
   {"B", "",  320, { 0,X,0,X,0,X,0,X } },\r
   {"N", "",  300, { N,N,N,N,N,N,N,N } },\r
   {"K", "",  280, { 1,1,1,1,1,1,1,1 } },\r
-  {"P", "Q",  80, { M,C,0,0,0,0,0,C } },\r
+  {"P", "FK", 80, { M,C,0,0,0,0,0,C } },\r
   { NULL }  // sentinel\r
 };\r
 \r
 PieceDesc lionPieces[] = {\r
   {"LN","", LVAL, { L,L,L,L,L,L,L,L } },\r
-  {"Q", "",  600, { X,X,X,X,X,X,X,X } },\r
+  {"FK", "", 600, { X,X,X,X,X,X,X,X } },\r
   {"R", "",  300, { X,0,X,0,X,0,X,0 } },\r
   {"K", "",  280, { 1,1,1,1,1,1,1,1 } },\r
   {"B", "",  190, { 0,X,0,X,0,X,0,X } },\r
   {"N", "",  180, { N,N,N,N,N,N,N,N } },\r
-  {"P", "Q",  50, { M,C,0,0,0,0,0,C } },\r
+  {"P", "FK", 50, { M,C,0,0,0,0,0,C } },\r
   { NULL }  // sentinel\r
 };\r
 \r
@@ -421,8 +421,8 @@ char tenArray[] = "LN:FLICSGK:DEGSCI:FLNL/:RV.:CS:CS.:BT:KN:LN:FK:PH:BT.:CS:CS.:
                  "....d......d..../pppppppppppppppp/:sm:vmr:hf:se:bg:rg:vg:gg:rg:bg:se:hfr:vm:sm/"\r
                  ":ss:vsb:dh:dk:wb:fi:fe:lh:fi:wb:dk:dhb:vs:ss/:rv.:cs:cs.:bt:ph:fk:ln:kn:bt.:cs:cs.:rv/ln:flicsg:dekgsci:flnl";\r
 char shoArray[] = "LNSGKGSNL/.B..:DE..R./PPPPPPPPP/........./........./........./ppppppppp/.r..:de..b./lnsgkgsnl";\r
-char chessArray[] = "RNBQKBNR/PPPPPPPP/......../......../......../......../pppppppp/rnbqkbnr";\r
-char lionArray[]  = "R:LNBQKBNR/PPPPPPPP/......../......../......../......../pppppppp/r:lnbqkbnr";\r
+char chessArray[] = "RNB:FKKBNR/PPPPPPPP/......../......../......../......../pppppppp/rnb:fkkbnr";\r
+char lionArray[]  = "R:LNB:FKKBNR/PPPPPPPP/......../......../......../......../pppppppp/r:lnb:fkkbnr";\r
 char shatArray[]= "RNBK:FKBNR/PPPPPPPP/......../......../......../......../pppppppp/rnbk:fkbnr";\r
 char thaiArray[]= "RNSK:SMSNR/......../PPPPPPPP/......../......../pppppppp/......../rnsk:smsnr";\r
 \r