]> git.sesse.net Git - stockfish/blobdiff - src/movegen.h
Raise penalty for knight attacked by pawn
[stockfish] / src / movegen.h
index 6e4b99cbab215dd4f700dbf6934664d67eda08f8..62a121d7d291629e37aeebe32afe32fbc29776c6 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "types.h"
 
+class Position;
+
 enum GenType {
   CAPTURES,
   QUIETS,
@@ -31,7 +33,14 @@ enum GenType {
   LEGAL
 };
 
-class Position;
+struct ExtMove {
+  Move move;
+  Value value;
+};
+
+inline bool operator<(const ExtMove& f, const ExtMove& s) {
+  return f.value < s.value;
+}
 
 template<GenType>
 ExtMove* generate(const Position& pos, ExtMove* moveList);