X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.h;h=38351e32f70c1b29eaf2df30acb5e197a2df980a;hp=fdac5d0ba00856ac489b66220d3164fb0f3a005e;hb=07f3f0384a95a6de8a4a6a066e1ec81de24b41f1;hpb=95d9687d95e5aa540c58e673300ef911164c90e0 diff --git a/src/movegen.h b/src/movegen.h index fdac5d0b..38351e32 100644 --- a/src/movegen.h +++ b/src/movegen.h @@ -20,8 +20,7 @@ #if !defined(MOVEGEN_H_INCLUDED) #define MOVEGEN_H_INCLUDED -#include "move.h" -#include "position.h" +#include "types.h" enum MoveType { MV_CAPTURE, @@ -33,9 +32,13 @@ enum MoveType { MV_LEGAL }; +class Position; + template MoveStack* generate(const Position& pos, MoveStack* mlist); +/// The MoveList struct is a simple wrapper around generate(), sometimes comes +/// handy to use this class instead of the low level generate() function. template struct MoveList {