Another small tweak to skills

No functional change.
This commit is contained in:
Marco Costalba
2015-01-31 13:22:06 +01:00
parent 60c121f3b1
commit 81d6c4a0d6
2 changed files with 9 additions and 11 deletions

View File

@@ -55,15 +55,15 @@ struct Stack {
struct RootMove {
RootMove(Move m) : score(-VALUE_INFINITE), previousScore(-VALUE_INFINITE), pv(1, m) {}
explicit RootMove(Move m) : pv(1, m) {}
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);
bool extract_ponder_from_tt(Position& pos);
Value score;
Value previousScore;
Value score = -VALUE_INFINITE;
Value previousScore = -VALUE_INFINITE;
std::vector<Move> pv;
};