Skip to content

Commit

Permalink
Save move in excludedMove nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
marotear committed May 16, 2018
1 parent aacee91 commit 5eb2277
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/search.cpp
Expand Up @@ -1166,6 +1166,8 @@ namespace {
bestValue >= beta ? BOUND_LOWER :
PvNode && bestMove ? BOUND_EXACT : BOUND_UPPER,
depth, bestMove, ss->staticEval, TT.generation());
else if (bestMove)
tte->save_move(bestMove);

assert(bestValue > -VALUE_INFINITE && bestValue < VALUE_INFINITE);

Expand Down
2 changes: 2 additions & 0 deletions src/tt.h
Expand Up @@ -42,6 +42,8 @@ struct TTEntry {
Depth depth() const { return (Depth)(depth8 * int(ONE_PLY)); }
Bound bound() const { return (Bound)(genBound8 & 0x3); }

void save_move(Move m) { move16 = (uint16_t)m; }

void save(Key k, Value v, Bound b, Depth d, Move m, Value ev, uint8_t g) {

assert(d / ONE_PLY * ONE_PLY == d);
Expand Down

0 comments on commit 5eb2277

Please sign in to comment.