/// <summary> /// Initializes a new instance of the <see cref="FriendlyBoard"/> class. /// </summary> /// <param name="bitboard">The bitboard.</param> public FriendlyBoard(Bitboard bitboard) { Pieces = new FriendlyPiecesList(bitboard.Pieces); Attacks = new FriendlyAttacksList(bitboard.Attacks, Pieces); Castling = new FriendlyCastling(bitboard.CastlingPossibility, bitboard.CastlingDone); EnPassant = new FriendlyEnPassant(bitboard.EnPassant); }
/// <summary> /// Initializes a new instance of the <see cref="FriendlyBoard"/> class. /// </summary> public FriendlyBoard() { Pieces = new FriendlyPiecesList(); Attacks = new FriendlyAttacksList(); Castling = new FriendlyCastling(); EnPassant = new FriendlyEnPassant(); }
/// <summary> /// Initializes a new instance of the <see cref="FriendlyBoard"/> class. /// </summary> /// <param name="pieces">The pieces list.</param> /// <param name="castling">The castling data.</param> /// <param name="enPassant">The en passant data.</param> public FriendlyBoard(FriendlyPiecesList pieces, FriendlyCastling castling, FriendlyEnPassant enPassant) { Pieces = pieces; Castling = castling; EnPassant = enPassant; }