mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Move depth calculation in probCut
The change passed an STC regression: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 59350 W: 10793 L: 10738 D: 37819 I verified that there was no change in performance on my machine, but of course YMMV: Results for 40 tests for each version: Base Test Diff Mean 2014338 2016121 -1783 StDev 62655 63441 3860 p-value: 0.678 speedup: 0.001 No functional change. Closes #1137
This commit is contained in:
parent
ebc563059c
commit
f907d5b7d9
1 changed files with 2 additions and 3 deletions
|
@ -784,9 +784,7 @@ namespace {
|
|||
&& abs(beta) < VALUE_MATE_IN_MAX_PLY)
|
||||
{
|
||||
Value rbeta = std::min(beta + 200, VALUE_INFINITE);
|
||||
Depth rdepth = depth - 4 * ONE_PLY;
|
||||
|
||||
assert(rdepth >= ONE_PLY);
|
||||
assert(is_ok((ss-1)->currentMove));
|
||||
|
||||
MovePicker mp(pos, ttMove, rbeta - ss->staticEval);
|
||||
|
@ -797,8 +795,9 @@ namespace {
|
|||
ss->currentMove = move;
|
||||
ss->history = &thisThread->counterMoveHistory[pos.moved_piece(move)][to_sq(move)];
|
||||
|
||||
assert(depth >= 5 * ONE_PLY);
|
||||
pos.do_move(move, st);
|
||||
value = -search<NonPV>(pos, ss+1, -rbeta, -rbeta+1, rdepth, !cutNode, false);
|
||||
value = -search<NonPV>(pos, ss+1, -rbeta, -rbeta+1, depth - 4 * ONE_PLY, !cutNode, false);
|
||||
pos.undo_move(move);
|
||||
if (value >= rbeta)
|
||||
return value;
|
||||
|
|
Loading…
Add table
Reference in a new issue