4 #ifndef EVAL_ML_MOBILITY_H
5 #define EVAL_ML_MOBILITY_H
30 static void adjust(
const NumEffectState&,
bool promoted,
31 int vertical,
int horizontal,
37 int count,
bool vertical)
39 const int x = (rook.
x() > 5 ?
40 10 - rook.
x() : rook.
x());
41 return x - 1 + 5 * ((promoted ? 1 : 0) +
42 2 * ((vertical ? 1 : 0) + 2 *
count));
46 int count,
bool vertical)
48 const int y = (Sign > 0 ? rook.
y() : 10 - rook.
y());
49 return y - 1 + 9 * ((promoted ? 1 : 0) +
50 2 * ((vertical ? 1 : 0) + 2 *
count));
57 const bool flip = r.
x() > 5;
58 const int x = (flip ? 10 - r.
x() : r.
x());
59 const int king_x = (flip ? 10 - k.
x() : k.
x());
60 return king_x - 1 + 9 * (x - 1 + 5 * ((vertical ? 1 : 0) + 2 * count));
115 static void adjust(
bool promoted,
int mobility1,
int mobility2,
152 #endif // EVAL_ML_MOBILITY_H