X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=c24f22090882b443d15618defc7fc0dd436630cb;hp=417f4815755564b56d599a2ba25ad27392c64bea;hb=a6ae2d3a31e93000e65bdfd8f0b6d9a3e6b8ce1b;hpb=25296547d0258f8519b7614e4474bbc947eaea04 diff --git a/src/types.h b/src/types.h index 417f4815..c24f2209 100644 --- a/src/types.h +++ b/src/types.h @@ -184,10 +184,10 @@ enum Value : int { VALUE_MATED_IN_MAX_PLY = -VALUE_MATE + 2 * MAX_PLY, PawnValueMg = 188, PawnValueEg = 248, - KnightValueMg = 753, KnightValueEg = 832, - BishopValueMg = 814, BishopValueEg = 890, - RookValueMg = 1285, RookValueEg = 1371, - QueenValueMg = 2513, QueenValueEg = 2648, + KnightValueMg = 764, KnightValueEg = 848, + BishopValueMg = 826, BishopValueEg = 891, + RookValueMg = 1282, RookValueEg = 1373, + QueenValueMg = 2526, QueenValueEg = 2646, MidgameLimit = 15258, EndgameLimit = 3915 }; @@ -421,6 +421,10 @@ inline Square to_sq(Move m) { return Square(m & 0x3F); } +inline int from_to(Move m) { + return m & 0xFFF; +} + inline MoveType type_of(Move m) { return MoveType(m & (3 << 14)); }