X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Finit.c;fp=gnushogi%2Finit.c;h=ac870a5099fbcb40067168f00cc0cc901ff3acef;hb=d00d0b5433bd7df1ca36a02d2707a01be9bda04f;hp=1c034d08c5bd55fa77166846e936193178c000c6;hpb=e6b3635549cc41aed90a2a9d21fec56cae757b66;p=gnushogi.git diff --git a/gnushogi/init.c b/gnushogi/init.c index 1c034d0..ac870a5 100644 --- a/gnushogi/init.c +++ b/gnushogi/init.c @@ -87,6 +87,20 @@ const small_short sweep[NO_PIECES] = false, true, true, false }; +const int typeMask[NO_PIECES] = +{ + 0, T_PAWN, +#ifndef MINISHOGI + T_LANCE, T_KNIGHT, +#endif + T_SILVER, T_GOLD, T_BISHOP, T_ROOK, + T_PPAWN, +#ifndef MINISHOGI + T_PLANCE, T_PKNIGHT, +#endif + T_PSILVER, T_PBISHOP, T_PROOK, T_KING +}; + #ifdef SAVE_DISTDATA short