summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ba1a44f)
Now in non-check nodes we are guaranteed to always have static value
in TT Entry.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
isCheck = pos.is_check();
if (!isCheck)
{
isCheck = pos.is_check();
if (!isCheck)
{
- if (tte && tte->static_value() != VALUE_NONE)
+ assert(tte->static_value() != VALUE_NONE);
ss->eval = tte->static_value();
ei.kingDanger[pos.side_to_move()] = tte->king_danger();
}
ss->eval = tte->static_value();
ei.kingDanger[pos.side_to_move()] = tte->king_danger();
}
- if (tte && tte->static_value() != VALUE_NONE)
+ assert(tte->static_value() != VALUE_NONE);
ei.kingDanger[pos.side_to_move()] = tte->king_danger();
bestValue = tte->static_value();
}
ei.kingDanger[pos.side_to_move()] = tte->king_danger();
bestValue = tte->static_value();
}