From 35b77b120ef5ca5d9db848e02e42642b1a93e982 Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Fri, 7 Apr 2017 17:02:31 -0700 Subject: [PATCH] Standardize stat penalty STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 90631 W: 16325 L: 16323 D: 57983 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 97679 W: 12779 L: 12759 D: 72141 Bench: 6340591 Closes #1053 --- src/search.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index d555b62e..85817cd1 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -97,8 +97,8 @@ namespace { Move best = MOVE_NONE; }; - // EasyMoveManager structure is used to detect an 'easy move'. When the PV is - // stable across multiple search iterations, we can quickly return the best move. + // EasyMoveManager structure is used to detect an 'easy move'. When the PV is stable + // across multiple search iterations, we can quickly return the best move. struct EasyMoveManager { void clear() { @@ -635,7 +635,7 @@ namespace { // Penalty for a quiet ttMove that fails low else if (!pos.capture_or_promotion(ttMove)) { - Value penalty = -stat_bonus(depth + ONE_PLY); + Value penalty = -stat_bonus(depth); thisThread->history.update(pos.side_to_move(), ttMove, penalty); update_cm_stats(ss, pos.moved_piece(ttMove), to_sq(ttMove), penalty); } -- 2.39.2