mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 17:49:35 +00:00
Don't allow LMR to fall in qsearch
And increase LMR limit. Tests show no change ELO wise, but we prefer to take the risk to commit anyhow becuase is a 'prune reducing' patch. After 10749 games Mod vs Orig: 1670 - 1676 - 7403 ELO 0 (+-3.7) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
972dec454c
commit
1b69ef8e6c
1 changed files with 3 additions and 4 deletions
|
@ -966,7 +966,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
|
|
||||||
// Step 15. Reduced depth search (LMR). If the move fails high will be
|
// Step 15. Reduced depth search (LMR). If the move fails high will be
|
||||||
// re-searched at full depth.
|
// re-searched at full depth.
|
||||||
if ( depth > 3 * ONE_PLY
|
if ( depth > 4 * ONE_PLY
|
||||||
&& !isPvMove
|
&& !isPvMove
|
||||||
&& !captureOrPromotion
|
&& !captureOrPromotion
|
||||||
&& !dangerous
|
&& !dangerous
|
||||||
|
@ -975,11 +975,10 @@ split_point_start: // At split points actual search starts from here
|
||||||
&& ss->killers[1] != move)
|
&& ss->killers[1] != move)
|
||||||
{
|
{
|
||||||
ss->reduction = reduction<PvNode>(depth, moveCount);
|
ss->reduction = reduction<PvNode>(depth, moveCount);
|
||||||
Depth d = newDepth - ss->reduction;
|
Depth d = std::max(newDepth - ss->reduction, ONE_PLY);
|
||||||
alpha = SpNode ? sp->alpha : alpha;
|
alpha = SpNode ? sp->alpha : alpha;
|
||||||
|
|
||||||
value = d < ONE_PLY ? -qsearch<NonPV>(pos, ss+1, -(alpha+1), -alpha, DEPTH_ZERO)
|
value = -search<NonPV>(pos, ss+1, -(alpha+1), -alpha, d);
|
||||||
: - search<NonPV>(pos, ss+1, -(alpha+1), -alpha, d);
|
|
||||||
|
|
||||||
doFullDepthSearch = (value > alpha && ss->reduction != DEPTH_ZERO);
|
doFullDepthSearch = (value > alpha && ss->reduction != DEPTH_ZERO);
|
||||||
ss->reduction = DEPTH_ZERO;
|
ss->reduction = DEPTH_ZERO;
|
||||||
|
|
Loading…
Add table
Reference in a new issue