diff --git a/src/depth.h b/src/depth.h index 86af1dff..96b9197c 100644 --- a/src/depth.h +++ b/src/depth.h @@ -26,19 +26,12 @@ //// enum Depth { - DEPTH_ZERO = 0, - DEPTH_MAX = 200, // 100 * OnePly; - DEPTH_NONE = -254 // -127 * OnePly + + OnePly = 2, + DEPTH_NONE = -127 * OnePly }; -//// -//// Constants -//// - -const Depth OnePly = Depth(2); - - //// //// Inline functions //// diff --git a/src/search.cpp b/src/search.cpp index 978f6622..3d26d430 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1897,7 +1897,7 @@ namespace { && pos.type_of_piece_on(move_to(m)) != PAWN && pos.see_sign(m) >= 0) { - result += OnePly/2; + result += OnePly / 2; *dangerous = true; }