X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=1218ef3be223289f10fbb744d3bab771d1b32fb8;hp=a5e01f9001149291f13439fffac3e9c78f765644;hb=8b15961349e18a9ba113973c53f53913d0cd0fad;hpb=d8f683760c9eb6d2c4714ec83e717dd2143de55c diff --git a/src/search.h b/src/search.h index a5e01f90..1218ef3b 100644 --- a/src/search.h +++ b/src/search.h @@ -44,7 +44,7 @@ struct Stack { Move excludedMove; Move killers[2]; Value staticEval; - Value history; + int history; int moveCount; }; @@ -57,7 +57,8 @@ struct RootMove { explicit RootMove(Move m) : pv(1, m) {} - bool operator<(const RootMove& m) const { return m.score < score; } // Descending sort + bool operator<(const RootMove& m) const { + return m.score != score ? m.score < score : m.previousScore < previousScore; } // Descending sort bool operator==(const Move& m) const { return pv[0] == m; } bool extract_ponder_from_tt(Position& pos);