X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.h;h=62a121d7d291629e37aeebe32afe32fbc29776c6;hp=6e4b99cbab215dd4f700dbf6934664d67eda08f8;hb=9369f4963d9376820cb5ca4bad66b86e67b0a010;hpb=42b48b08e81b55e385e55b3074b7c59d81809a45 diff --git a/src/movegen.h b/src/movegen.h index 6e4b99cb..62a121d7 100644 --- a/src/movegen.h +++ b/src/movegen.h @@ -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 ExtMove* generate(const Position& pos, ExtMove* moveList);