예제 #1
0
 public void Does_Not_Return_1_8_When_Black_Passed_1_7()
 {
     _pawn = new Pawn(PlayerColor.Black);
     _startingLocation = new BoardCoordinate(1, 7);
     var legalMoves = _pawn.GetLegalMovesFromCoordinate(_startingLocation, _board.BoardSize);
     var target = new BoardCoordinate(1, 8);
     Assert.IsFalse(legalMoves.Contains(target));
 }
예제 #2
0
 public void Setup()
 {
     _board = new Board(8);
     _pawn = new Pawn(PlayerColor.White);
     _startingLocation = new BoardCoordinate(1, 1);
 }