X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=543b38a84752faa6ab3844504e8ecd48d2aee381;hp=3ff07ee7f1f2681df4dd465050fc2098c3ae4844;hb=bc83515c9e821016d2113298ef988e99ceced1af;hpb=222f59b9c1537f22db65c6104072f5e0f68c1fbc diff --git a/src/types.h b/src/types.h index 3ff07ee7..543b38a8 100644 --- a/src/types.h +++ b/src/types.h @@ -100,9 +100,8 @@ const bool Is64Bit = false; typedef uint64_t Key; typedef uint64_t Bitboard; -const int MAX_MOVES = 256; -const int MAX_PLY = 120; -const int MAX_PLY_PLUS_6 = MAX_PLY + 6; +const int MAX_MOVES = 256; +const int MAX_PLY = 128; /// A move needs 16 bits to be stored /// @@ -255,6 +254,7 @@ enum Rank { RANK_1, RANK_2, RANK_3, RANK_4, RANK_5, RANK_6, RANK_7, RANK_8, RANK_NB }; +template inline T dist(T x, T y) { return x < y ? y - x : x - y; } /// The Score enum stores a middlegame and an endgame value in a single integer /// (enum). The least significant 16 bits are used to store the endgame value