Add Chess pieces
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 12 Jul 2012 10:11:31 +0000 (12:11 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 12 Jul 2012 10:13:54 +0000 (12:13 +0200)
hachu.c

diff --git a/hachu.c b/hachu.c
index 4ee9e04..bfb25f2 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -262,6 +262,16 @@ PieceDesc taikyokuPieces[] = {
   { NULL }  // sentinel\r
 };\r
 \r
+PieceDesc chessPieces[] = {\r
+  {"Q", "",  95, { X,X,X,X,X,X,X,X } },\r
+  {"R", "",  50, { X,0,X,0,X,0,X,0 } },\r
+  {"B", "",  33, { 0,X,0,X,0,X,0,X } },\r
+  {"N", "",  30, { N,N,N,N,N,N,N,N } },\r
+  {"K", "",  28, { 1,1,1,1,1,1,1,1 } },\r
+  {"P", "Q",  8, { 0,1,0,0,0,0,0,1 } },\r
+  { NULL }  // sentinel\r
+};\r
+\r
 char chuArray[] = "L:FLCSGK:DEGSC:FLL/:RV.B.:BT:KN:PH:BT.B.:RV/:SM:VMR:DH:DK:LN:FK:DK:DHR:VM:SM/PPPPPPPPPPPP/...:GB....:GB..."\r
                  "/............/............/"\r
                  "...:gb....:gb.../pppppppppppp/:sm:vmr:dh:dk:fk:ln:dk:dhr:vm:sm/:rv.b.:bt:ph:kn:bt.b.:rv/l:flcsg:dekgsc:fll";\r