public void Setup() { _board = new Board(8); _pawn = new Pawn(PlayerColor.White); _startingLocation = new BoardCoordinate(1, 1); }
public void Setup() { _board = new Board(8); _piece = new Knight(PlayerColor.White); _startingLocation = new BoardCoordinate(2, 1); }
public MoveAttempt(Board board, BoardCoordinate origin, BoardCoordinate destination) { _board = board; _origin = origin; _destination = destination; }
public Board Clone() { var clone = new Board(this.BoardSize); foreach (var key in _pieces.Keys) { clone.AddPiece(_pieces[key], key); } return clone; }
public void BeforeTests() { _board = new Board(8); _rook = new Rook(PlayerColor.White); _king = new King(PlayerColor.Black); }
public void Setup() { _board = new Board(8); _piece = new Queen(PlayerColor.White); _startLocation = new BoardCoordinate(1, 1); }