#include "types.h"
+class Position;
+
enum GenType {
CAPTURES,
QUIETS,
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);