]> git.sesse.net Git - stockfish/blobdiff - src/move.h
Stockfish 1.3.1
[stockfish] / src / move.h
index e9f7242696c9abf0fa477758b192c47f4ace9dcb..527699c82f8cf73b6ef9078c06abcf94f0b23ecf 100644 (file)
@@ -62,6 +62,9 @@ struct MoveStack {
   int score;
 };
 
+// Note that operator< is set up such that std::sort() will sort in descending order
+inline bool operator<(const MoveStack& f, const MoveStack& s) { return s.score < f.score; }
+
 
 ////
 //// Inline functions