mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Fix a comment and add an assert in root_search()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
cc2a249952
commit
f23a9e8f88
1 changed files with 2 additions and 2 deletions
|
@ -950,6 +950,7 @@ namespace {
|
||||||
rml.set_move_nodes(i, TM.nodes_searched() - nodes);
|
rml.set_move_nodes(i, TM.nodes_searched() - nodes);
|
||||||
|
|
||||||
assert(value >= -VALUE_INFINITE && value <= VALUE_INFINITE);
|
assert(value >= -VALUE_INFINITE && value <= VALUE_INFINITE);
|
||||||
|
assert(value < beta);
|
||||||
|
|
||||||
// Step 17. Check for new best move
|
// Step 17. Check for new best move
|
||||||
if (value <= alpha && i >= MultiPV)
|
if (value <= alpha && i >= MultiPV)
|
||||||
|
@ -975,8 +976,7 @@ namespace {
|
||||||
// Print information to the standard output
|
// Print information to the standard output
|
||||||
print_pv_info(pos, ss, alpha, beta, value);
|
print_pv_info(pos, ss, alpha, beta, value);
|
||||||
|
|
||||||
// Raise alpha to setup proper non-pv search upper bound, note
|
// Raise alpha to setup proper non-pv search upper bound
|
||||||
// that we can end up with alpha >= beta and so get a fail high.
|
|
||||||
if (value > alpha)
|
if (value > alpha)
|
||||||
alpha = value;
|
alpha = value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue