* ----------------------------------------------------------------------
* Copyright (c) 1993, 1994, 1995 Matthias Mutz
* Copyright (c) 1999 Michael Vanier and the Free Software Foundation
+ * Copyright (c) 2008, 2013, 2014 Yann Dirson and the Free Software Foundation
*
* GNU SHOGI is based on GNU CHESS
*
}
+#ifndef MINISHOGI
inline static short
on_column(short side, short piece, short c)
{
return false;
}
+#endif
short pscore[2]; /* piece score for each side */
-
-
/*
* Fill array attack[side][] with info about attacks to a square. Bits
* 16-31 are set if the piece (king .. pawn) attacks the square. Bits 0-15
#endif
short s, mobx;
- short u, xu, pin, ptyp, csq = column(sq);
+ short u, xu, pin, ptyp;
+#ifndef MINISHOGI
+ short csq = column(sq);
+#endif
short piece, upiece, xupiece, rvalue, ds;
small_short *Kd = Kdist[c2];
{
short s = 0;
short ds;
+#ifndef MINISHOGI
short ccol = ccolumn(c1, sq);
+#endif
PromotionZoneDistanceValue(sq, 3);