Use alpha instead of beta-1
authorMarco Costalba <mcostalba@gmail.com>
Sun, 9 Jun 2013 09:52:39 +0000 (11:52 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 9 Jun 2013 09:52:39 +0000 (11:52 +0200)
It is more directly related to a fail-low.

No functional change.

src/search.cpp

index 1268445..00c871f 100644 (file)
@@ -716,7 +716,7 @@ namespace {
                 && (ss-1)->reduction
                 && threatMove != MOVE_NONE
                 && allows(pos, (ss-1)->currentMove, threatMove))
-                return beta - 1;
+                return alpha;
         }
     }