Example #1
0
 public void Setup()
 {
     _board = new Board(8);
     _pawn = new Pawn(PlayerColor.White);
     _startingLocation = new BoardCoordinate(1, 1);
 }
Example #2
0
 public void Setup()
 {
     _board = new Board(8);
     _piece = new Knight(PlayerColor.White);
     _startingLocation = new BoardCoordinate(2, 1);
 }
Example #3
0
 public MoveAttempt(Board board, BoardCoordinate origin, BoardCoordinate destination)
 {
     _board = board;
     _origin = origin;
     _destination = destination;
 }
Example #4
0
        public Board Clone()
        {
            var clone = new Board(this.BoardSize);

            foreach (var key in _pieces.Keys)
            {
                clone.AddPiece(_pieces[key], key);
            }

            return clone;
        }
Example #5
0
 public void BeforeTests()
 {
     _board = new Board(8);
     _rook = new Rook(PlayerColor.White);
     _king = new King(PlayerColor.Black);
 }
Example #6
0
 public void Setup()
 {
     _board = new Board(8);
     _piece = new Queen(PlayerColor.White);
     _startLocation = new BoardCoordinate(1, 1);
 }