mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Reduce increase progression of aspiration window
Currently, in case of fail high/low we research with a window increased by 2*AspirationDelta at first attempt, this patch instead makes the research be done with an increase of just AspirationDelta size, in case of a consecutive fail we will widen to 2*AspirationDelta and so on. After Joona's test: Orig - Mod: 850 - 890 Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -931,8 +931,8 @@ namespace {
|
|||||||
print_pv_info(pos, ss, alpha, beta, value);
|
print_pv_info(pos, ss, alpha, beta, value);
|
||||||
|
|
||||||
// Prepare for a research after a fail high, each time with a wider window
|
// Prepare for a research after a fail high, each time with a wider window
|
||||||
researchCountFH++;
|
|
||||||
*betaPtr = beta = Min(beta + AspirationDelta * (1 << researchCountFH), VALUE_INFINITE);
|
*betaPtr = beta = Min(beta + AspirationDelta * (1 << researchCountFH), VALUE_INFINITE);
|
||||||
|
researchCountFH++;
|
||||||
|
|
||||||
} // End of fail high loop
|
} // End of fail high loop
|
||||||
|
|
||||||
@@ -1017,8 +1017,8 @@ namespace {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
// Prepare for a research after a fail low, each time with a wider window
|
// Prepare for a research after a fail low, each time with a wider window
|
||||||
researchCountFL++;
|
|
||||||
*alphaPtr = alpha = Max(alpha - AspirationDelta * (1 << researchCountFL), -VALUE_INFINITE);
|
*alphaPtr = alpha = Max(alpha - AspirationDelta * (1 << researchCountFL), -VALUE_INFINITE);
|
||||||
|
researchCountFL++;
|
||||||
|
|
||||||
} // Fail low loop
|
} // Fail low loop
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user