Make use of asymmetric SEE
authorJoona Kiiski <joona.kiiski@gmail.com>
Sat, 30 Mar 2013 20:01:49 +0000 (20:01 +0000)
committerJoona Kiiski <joona.kiiski@gmail.com>
Fri, 5 Apr 2013 18:05:32 +0000 (19:05 +0100)
src/search.cpp

index 60667c8..ab34673 100644 (file)
@@ -1228,7 +1228,7 @@ split_point_start: // At split points actual search starts from here
           // Prune moves with negative or equal SEE
           if (   futilityBase < beta
               && depth < DEPTH_ZERO
-              && pos.see(move) <= 0)
+              && pos.see_asymm(move, beta - futilityBase) <= 0)
           {
               bestValue = std::max(bestValue, futilityBase);
               continue;