public void SetUp() { _chessBoard = new ChessBoard(); _pawn = new Pawn(PieceColor.Black); }
protected override void Given() { ChessBoard = new ChessBoard(); base.Given(); }
public void SetUp() { _chessBoard = new ChessBoard(); }
protected BaseMoveStrategy(ChessBoard board) { ChessBoard = board; CaptureableLocation = new List <Tuple <int, int> >(); }
public void SetUp() { _chessboard = new ChessBoard(); }
public ColumnMoveStrategy(ChessBoard board) : base(board) { }
public Queen(PieceColor color, ChessBoard board) { PieceColor = color; ChessBoard = board; }
public DiagonalMoveStrategy(ChessBoard board) : base(board) { }
/// <summary> /// Constructor for Pawns, containing the board and the piece color. /// </summary> /// <param name="pieceColor">White or black</param> /// <param name="chessboard">Chessboard is needed for when Pawns are trying to /// determine their legal moves</param> /// <remarks>I had to add this constructor, in my logic to validate the correct moves and determine /// legal positions</remarks> public Pawn(PieceColor pieceColor, ChessBoard chessboard) { _pieceColor = pieceColor; _chessBoard = chessboard; }