X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=c43eee3df14ed3bea9692b44fad299d40bde1f71;hp=9b7e538d95b2e61609d47b240e16241ca375d2f2;hb=87886128288a82dabc78c2ce6dd688f42eaf8212;hpb=d4af15f682c1967450233ab62cba1a6c5d601df6 diff --git a/src/types.h b/src/types.h index 9b7e538d..c43eee3d 100644 --- a/src/types.h +++ b/src/types.h @@ -185,10 +185,10 @@ enum Value : int { VALUE_MATED_IN_MAX_PLY = -VALUE_MATE + 2 * MAX_PLY, PawnValueMg = 198, PawnValueEg = 258, - KnightValueMg = 817, KnightValueEg = 846, - BishopValueMg = 836, BishopValueEg = 857, - RookValueMg = 1270, RookValueEg = 1281, - QueenValueMg = 2521, QueenValueEg = 2558, + KnightValueMg = 817, KnightValueEg = 896, + BishopValueMg = 836, BishopValueEg = 907, + RookValueMg = 1270, RookValueEg = 1356, + QueenValueMg = 2521, QueenValueEg = 2658, MidgameLimit = 15581, EndgameLimit = 3998 }; @@ -355,7 +355,7 @@ inline Piece make_piece(Color c, PieceType pt) { return Piece((c << 3) | pt); } -inline PieceType type_of(Piece pc) { +inline PieceType type_of(Piece pc) { return PieceType(pc & 7); }