From 7d717df4e4e6284449c3588bd75a45cbb5f307da Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 27 Oct 2008 21:59:12 +0100 Subject: [PATCH] Revert "Last minute surprise" for now It defenitly needs more testing. Just postponed. Signed-off-by: Marco Costalba --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index fca3d2c9..80eeb717 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -931,7 +931,6 @@ namespace { { assert(move_is_ok(move)); - bool lastMinuteSurprise = (depth <= OnePly && mp.current_move_type() == MovePicker::PH_GOOD_CAPTURES); bool singleReply = (pos.is_check() && mp.number_of_moves() == 1); bool moveIsCheck = pos.move_is_check(move, dcCandidates); bool moveIsCapture = pos.move_is_capture(move); @@ -943,7 +942,7 @@ namespace { PawnValueMidgame : pos.midgame_value_of_piece_on(move_to(move)); // Decide the new search depth - Depth ext = extension(pos, move, true, moveIsCheck, singleReply || lastMinuteSurprise, mateThreat); + Depth ext = extension(pos, move, true, moveIsCheck, singleReply, mateThreat); Depth newDepth = depth - OnePly + ext; // Make and search the move -- 2.39.2