mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Use move not ttMove in exclude search
If we arrive until the exclusion search call then we know that move == ttMove == tte->move() But using ttMove in search call while, during excluded search conditions we have used tte->Move()could be a little bit suboptimal. On the other side using tte->move() also in search call is a bit ugly so opt for the third choice that is the most clean becasue from the conditions the reader easily understands that we are talking of ttMove and that we ant to exclude the move we are evaluating in that moment. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
ae6157fcf3
commit
25c22ffe7a
1 changed files with 2 additions and 2 deletions
|
@ -1180,7 +1180,7 @@ namespace {
|
||||||
|
|
||||||
if (abs(ttValue) < VALUE_KNOWN_WIN)
|
if (abs(ttValue) < VALUE_KNOWN_WIN)
|
||||||
{
|
{
|
||||||
Value excValue = search(pos, ss, ttValue - SingleReplyMargin, depth / 2, ply, false, threadID, ttMove);
|
Value excValue = search(pos, ss, ttValue - SingleReplyMargin, depth / 2, ply, false, threadID, move);
|
||||||
|
|
||||||
// If search result is well below the foreseen score of the ttMove then we
|
// If search result is well below the foreseen score of the ttMove then we
|
||||||
// assume ttMove is the only one realistically playable and we extend it.
|
// assume ttMove is the only one realistically playable and we extend it.
|
||||||
|
@ -1485,7 +1485,7 @@ namespace {
|
||||||
|
|
||||||
if (abs(ttValue) < VALUE_KNOWN_WIN)
|
if (abs(ttValue) < VALUE_KNOWN_WIN)
|
||||||
{
|
{
|
||||||
Value excValue = search(pos, ss, ttValue - SingleReplyMargin, depth / 2, ply, false, threadID, ttMove);
|
Value excValue = search(pos, ss, ttValue - SingleReplyMargin, depth / 2, ply, false, threadID, move);
|
||||||
|
|
||||||
// If search result is well below the foreseen score of the ttMove then we
|
// If search result is well below the foreseen score of the ttMove then we
|
||||||
// assume ttMove is the only one realistically playable and we extend it.
|
// assume ttMove is the only one realistically playable and we extend it.
|
||||||
|
|
Loading…
Add table
Reference in a new issue