X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmovegen.h;h=580ca2e74645cfd183b6457ec0c1a6fe594fd5d0;hb=01a191936eeb3dc3366554b1423c53da2a1ae56a;hp=4bb443311232c49a352202422ece7bfd82caf136;hpb=0fcda095df1caa860e8e3f3a714d5545ec9dc122;p=stockfish diff --git a/src/movegen.h b/src/movegen.h index 4bb44331..580ca2e7 100644 --- a/src/movegen.h +++ b/src/movegen.h @@ -20,6 +20,7 @@ #if !defined(MOVEGEN_H_INCLUDED) #define MOVEGEN_H_INCLUDED +#include "move.h" #include "position.h" enum MoveType { @@ -29,14 +30,10 @@ enum MoveType { MV_NON_CAPTURE_CHECK, MV_EVASION, MV_NON_EVASION, - MV_LEGAL, - MV_PSEUDO_LEGAL + MV_LEGAL }; -template +template MoveStack* generate(const Position& pos, MoveStack* mlist); -extern bool move_is_legal(const Position& pos, const Move m, Bitboard pinned); -extern bool move_is_legal(const Position& pos, const Move m); - #endif // !defined(MOVEGEN_H_INCLUDED)