X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=66be460d57375f94be1bace8fa775fb040b10de5;hp=c9c988bae190c49a17f3e1c670c3fdba77ee7ba2;hb=4a0db9ea3c34d7663a039c40ce810ba9cb743cca;hpb=4d22d3e52d561b9c0c7aeacee3df5d1b762f0a38 diff --git a/src/types.h b/src/types.h index c9c988ba..66be460d 100644 --- a/src/types.h +++ b/src/types.h @@ -145,12 +145,6 @@ enum CastlingRight { CASTLING_RIGHT_NB = 16 }; -template struct MakeCastling { - static constexpr CastlingRight - right = C == WHITE ? S == QUEEN_SIDE ? WHITE_OOO : WHITE_OO - : S == QUEEN_SIDE ? BLACK_OOO : BLACK_OO; -}; - enum Phase { PHASE_ENDGAME, PHASE_MIDGAME = 128, @@ -186,7 +180,7 @@ enum Value : int { KnightValueMg = 784, KnightValueEg = 868, BishopValueMg = 828, BishopValueEg = 916, RookValueMg = 1286, RookValueEg = 1378, - QueenValueMg = 2528, QueenValueEg = 2698, + QueenValueMg = 2529, QueenValueEg = 2687, MidgameLimit = 15258, EndgameLimit = 3915 };