X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=a149bddb1bf59033134f52ca355e67cfdf349340;hp=55dc33feee917ea380f20110b4e5f27e0a527e3b;hb=7b4aa1070882cba085c9d6ed03d934734c395fe5;hpb=3361ad42420e578362dcafb94b639738609bf7d7 diff --git a/src/position.h b/src/position.h index 55dc33fe..a149bddb 100644 --- a/src/position.h +++ b/src/position.h @@ -141,6 +141,7 @@ public: // Properties of moves bool move_gives_check(Move m, const CheckInfo& ci) const; bool move_attacks_square(Move m, Square s) const; + bool move_is_legal(const Move m) const; bool pl_move_is_legal(Move m, Bitboard pinned) const; bool is_pseudo_legal(const Move m) const; bool is_capture(Move m) const; @@ -197,7 +198,6 @@ private: void clear(); void put_piece(Piece p, Square s); void set_castle_right(Color c, Square rfrom); - bool move_is_legal(const Move m) const; // Helper template functions template void do_castle_move(Move m);