X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=bcf3da5ccb0ed34de85d878cbeea6f41a8c756ae;hp=e08fc8534e818e57c7459509758977081efd1ece;hb=48f38f3092626f0dfef3728568ad5d85ca6c2f92;hpb=d3947b2f3e4121db67aef6845b59562b1cec0665 diff --git a/src/types.h b/src/types.h index e08fc853..bcf3da5c 100644 --- a/src/types.h +++ b/src/types.h @@ -88,7 +88,7 @@ const bool Is64Bit = false; 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; @@ -323,11 +323,11 @@ inline bool operator<(const ExtMove& f, const ExtMove& s) { } 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) { @@ -371,10 +371,6 @@ inline Rank rank_of(Square s) { return Rank(s >> 3); } -inline Square mirror(Square s) { - return Square(s ^ 7); // Horizontal flip SQ_A1 -> SQ_H1 -} - inline Square relative_square(Color c, Square s) { return Square(s ^ (c * 56)); }