mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Remove one hack caused by misunderstanding
No functional change Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
02fe05cd0d
commit
d72e862a5b
1 changed files with 2 additions and 4 deletions
|
@ -804,8 +804,8 @@ namespace {
|
||||||
beta = *betaPtr;
|
beta = *betaPtr;
|
||||||
isCheck = pos.is_check();
|
isCheck = pos.is_check();
|
||||||
|
|
||||||
// Step 1. Initialize node and poll (omitted at root, but I can see no good reason for this, FIXME)
|
// Step 1. Initialize node and poll (omitted at root, init_ss_array() has already initialized root node)
|
||||||
// Step 2. Check for aborted search (omitted at root, because we do not initialize root node)
|
// Step 2. Check for aborted search (omitted at root)
|
||||||
// Step 3. Mate distance pruning (omitted at root)
|
// Step 3. Mate distance pruning (omitted at root)
|
||||||
// Step 4. Transposition table lookup (omitted at root)
|
// Step 4. Transposition table lookup (omitted at root)
|
||||||
|
|
||||||
|
@ -813,8 +813,6 @@ namespace {
|
||||||
// At root we do this only to get reference value for child nodes
|
// At root we do this only to get reference value for child nodes
|
||||||
if (!isCheck)
|
if (!isCheck)
|
||||||
ss[0].eval = evaluate(pos, ei, 0);
|
ss[0].eval = evaluate(pos, ei, 0);
|
||||||
else
|
|
||||||
ss[0].eval = VALUE_NONE; // HACK because we do not initialize root node
|
|
||||||
|
|
||||||
// Step 6. Razoring (omitted at root)
|
// Step 6. Razoring (omitted at root)
|
||||||
// Step 7. Static null move pruning (omitted at root)
|
// Step 7. Static null move pruning (omitted at root)
|
||||||
|
|
Loading…
Add table
Reference in a new issue