X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftypes.h;h=3260b903190b419858eee25818e7db5874ebd10a;hb=4d511512d2a74d60917bc1a749c3b35eb143118b;hp=2709d77ffea70c3a39276bc62d45883c6f5d3be8;hpb=6b4959e3e00035dbcabd74a6d49ce7d04008d62c;p=stockfish diff --git a/src/types.h b/src/types.h index 2709d77f..3260b903 100644 --- a/src/types.h +++ b/src/types.h @@ -183,7 +183,7 @@ enum Value : int { VALUE_MATE_IN_MAX_PLY = VALUE_MATE - 2 * MAX_PLY, VALUE_MATED_IN_MAX_PLY = -VALUE_MATE + 2 * MAX_PLY, - PawnValueMg = 188, PawnValueEg = 248, + PawnValueMg = 171, PawnValueEg = 240, KnightValueMg = 764, KnightValueEg = 848, BishopValueMg = 826, BishopValueEg = 891, RookValueMg = 1282, RookValueEg = 1373, @@ -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)); }