From: H.G. Muller Date: Thu, 12 Jul 2012 10:11:31 +0000 (+0200) Subject: Add Chess pieces X-Git-Tag: 0.18~83 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9b0fbdb717853b7eae63d05ee50e25babc9f0eb1;p=hachu.git Add Chess pieces --- diff --git a/hachu.c b/hachu.c index 4ee9e04..bfb25f2 100644 --- a/hachu.c +++ b/hachu.c @@ -262,6 +262,16 @@ PieceDesc taikyokuPieces[] = { { NULL } // sentinel }; +PieceDesc chessPieces[] = { + {"Q", "", 95, { X,X,X,X,X,X,X,X } }, + {"R", "", 50, { X,0,X,0,X,0,X,0 } }, + {"B", "", 33, { 0,X,0,X,0,X,0,X } }, + {"N", "", 30, { N,N,N,N,N,N,N,N } }, + {"K", "", 28, { 1,1,1,1,1,1,1,1 } }, + {"P", "Q", 8, { 0,1,0,0,0,0,0,1 } }, + { NULL } // sentinel +}; + 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..." "/............/............/" "...: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";