mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Remove 'update gains' hack
Use (move != MOVE_NONE) condition to filtering out updating gains at root. bench: 8454456
This commit is contained in:
parent
2f75639485
commit
d10ae90dea
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,6 @@ namespace {
|
|||
Value bestValue, alpha, beta, delta;
|
||||
|
||||
std::memset(ss-2, 0, 5 * sizeof(Stack));
|
||||
(ss-1)->currentMove = MOVE_NULL; // Hack to skip update gains
|
||||
|
||||
depth = 0;
|
||||
BestMoveChanges = 0;
|
||||
|
@ -553,6 +552,7 @@ namespace {
|
|||
&& ss->staticEval != VALUE_NONE
|
||||
&& (ss-1)->staticEval != VALUE_NONE
|
||||
&& (move = (ss-1)->currentMove) != MOVE_NULL
|
||||
&& move != MOVE_NONE
|
||||
&& type_of(move) == NORMAL)
|
||||
{
|
||||
Square to = to_sq(move);
|
||||
|
|
Loading…
Add table
Reference in a new issue