Try hard to retrieve a ponder move

In case we stop the search during a fail-high
it is possible we return to GUI without a ponder
move. This patch try harder to find a ponder move
retrieving it from TT. This is important in games
played with 'ponder on'.

bench: 8080602

Resolves #221
This commit is contained in:
Marco Costalba
2015-01-20 09:13:30 +01:00
committed by Joona Kiiski
parent 97a034ad3e
commit 44643c2770
2 changed files with 26 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ struct RootMove {
bool operator<(const RootMove& m) const { return score > m.score; } // Ascending sort
bool operator==(const Move& m) const { return pv[0] == m; }
void insert_pv_in_tt(Position& pos);
Move extract_ponder_from_tt(Position& pos);
Value score;
Value previousScore;