mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Remove useless bestValue = alpha assignement
It is a fossil from the root_search() era, no more needed today. Spotted by Onno No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
72760c05c6
commit
808a4fe817
1 changed files with 0 additions and 4 deletions
|
@ -591,8 +591,6 @@ namespace {
|
||||||
if (StopRequest)
|
if (StopRequest)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
assert(value >= alpha);
|
|
||||||
|
|
||||||
// In case of failing high/low increase aspiration window and research,
|
// In case of failing high/low increase aspiration window and research,
|
||||||
// otherwise exit the fail high/low loop.
|
// otherwise exit the fail high/low loop.
|
||||||
if (value >= beta)
|
if (value >= beta)
|
||||||
|
@ -747,8 +745,6 @@ namespace {
|
||||||
threatMove = sp->threatMove;
|
threatMove = sp->threatMove;
|
||||||
goto split_point_start;
|
goto split_point_start;
|
||||||
}
|
}
|
||||||
else if (RootNode)
|
|
||||||
bestValue = alpha;
|
|
||||||
|
|
||||||
// Step 1. Initialize node and poll. Polling can abort search
|
// Step 1. Initialize node and poll. Polling can abort search
|
||||||
ss->currentMove = ss->bestMove = threatMove = (ss+1)->excludedMove = MOVE_NONE;
|
ss->currentMove = ss->bestMove = threatMove = (ss+1)->excludedMove = MOVE_NONE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue