X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=e1bdf39e2b5bbbbf7c398016301672cebd17ab4a;hp=e4b6bd0f06123453a006abd6c1be70d67bbbe10c;hb=d543a64cc7fc06daed275b332b10ea06ba738001;hpb=bb3427ca85bdb20b4c8af12b63f635d03c5e9146 diff --git a/src/position.h b/src/position.h index e4b6bd0f..e1bdf39e 100644 --- a/src/position.h +++ b/src/position.h @@ -23,20 +23,20 @@ #include #include "bitboard.h" -#include "move.h" #include "types.h" /// The checkInfo struct is initialized at c'tor time and keeps info used /// to detect if a move gives check. +class Position; struct CheckInfo { - explicit CheckInfo(const Position&); + explicit CheckInfo(const Position&); - Bitboard dcCandidates; - Bitboard pinned; - Bitboard checkSq[8]; + Bitboard dcCandidates; + Bitboard pinned; + Bitboard checkSq[8]; }; @@ -44,7 +44,6 @@ struct CheckInfo { /// object to its previous state when we retract a move. Whenever a move /// is made on the board (by calling Position::do_move), an StateInfo object /// must be passed as a parameter. -class Position; struct StateInfo { Key pawnKey, materialKey;