typedef uint64_t Key;
typedef uint64_t Bitboard;
-const int MAX_MOVES = 192;
+const int MAX_MOVES = 256;
const int MAX_PLY = 100;
const int MAX_PLY_PLUS_6 = MAX_PLY + 6;
}
inline Color operator~(Color c) {
- return Color(c ^ 1);
+ return Color(c ^ BLACK);
}
inline Square operator~(Square s) {
- return Square(s ^ 56); // Vertical flip SQ_A1 -> SQ_A8
+ return Square(s ^ SQ_A8); // Vertical flip SQ_A1 -> SQ_A8
}
inline Square operator|(File f, Rank r) {