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

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

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