Skip to content

Commit 10bb2e6

Browse files
MJZ1977snicolet
authored andcommitted
Fix bug with "excludedMove" for probcut
Bugfix: "excludedMove" has to be skipped in the probcut loop too. If it is not skipped, the probcut can exit quickly with a wrong return value corresponding to the excluded move. See the following forum thread for a discussion: https://groups.google.com/forum/?fromgroups=#!topic/fishcooking/GGithf_VwSU STC : LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 17130 W: 3747 L: 3617 D: 9766 http://tests.stockfishchess.org/tests/view/5b8460c40ebc5902bdbb999a LTC : LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 12387 W: 2064 L: 1930 D: 8393 http://tests.stockfishchess.org/tests/view/5b8466f90ebc5902bdbb9a21 To go further : it can be perhaps useful to tune the singular extension search parameters. Closes #1754 Bench: 4308541
1 parent 166bf90 commit 10bb2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ namespace {
815815

816816
while ( (move = mp.next_move()) != MOVE_NONE
817817
&& probCutCount < 3)
818-
if (pos.legal(move))
818+
if (move != excludedMove && pos.legal(move))
819819
{
820820
probCutCount++;
821821

0 commit comments

Comments
 (0)