1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

Do move-count pruning in probcut

STC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 4928 W: 1163 L: 1007 D: 2758

LTC:
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 20368 W: 3441 L: 3238 D: 13689
http://tests.stockfishchess.org/tests/view/5a98bea40ebc590297cc8e5d

Bench: 6361568
This commit is contained in:
VoyagerOne 2018-03-03 12:03:38 +01:00 committed by Stéphane Nicolet
parent f35e52f030
commit b87308692a

View file

@ -757,10 +757,13 @@ namespace {
Value rbeta = std::min(beta + 200, VALUE_INFINITE);
MovePicker mp(pos, ttMove, rbeta - ss->staticEval, &thisThread->captureHistory);
while ((move = mp.next_move()) != MOVE_NONE)
int probCutCount = 0;
while ( (move = mp.next_move()) != MOVE_NONE
&& probCutCount < depth / ONE_PLY - 3)
if (pos.legal(move))
{
probCutCount++;
ss->currentMove = move;
ss->contHistory = thisThread->contHistory[pos.moved_piece(move)][to_sq(move)].get();