KING_SIDE, QUEEN_SIDE, CASTLING_SIDE_NB = 2
};
-enum CastlingRight { // Defined as in PolyGlot book hash key
+enum CastlingRight {
NO_CASTLING,
WHITE_OO,
WHITE_OOO = WHITE_OO << 1,
inline Score make_score(int mg, int eg) {
ScoreView v;
- v.half.mg = (int16_t)mg - (uint16_t(eg) >> 15);
+ v.half.mg = (int16_t)(mg - (uint16_t(eg) >> 15));
v.half.eg = (int16_t)eg;
return Score(v.full);
}
return make_score(mg_value(s) / i, eg_value(s) / i);
}
+CACHE_LINE_ALIGNMENT
+
extern Value PieceValue[PHASE_NB][PIECE_NB];
struct ExtMove {