()
| 70 | } |
| 71 | |
| 72 | @Test |
| 73 | public void surroundedByPiecesStraight() { |
| 74 | Board board = new Board(); |
| 75 | board.placeKing(3, 3, Color.BLACK); |
| 76 | board.placePawn(4, 3, Color.BLACK); |
| 77 | board.placePawn(3, 4, Color.BLACK); |
| 78 | board.placeRook(2, 3, Color.BLACK); |
| 79 | board.placeRook(3, 2, Color.BLACK); |
| 80 | board.placeKing(7, 7, Color.WHITE); |
| 81 | System.out.println(board); |
| 82 | System.out.println(board.getPiece(3, 3).getMoveList(board)); |
| 83 | Assert.assertEquals(4, board.getPiece(3, 3).getMoveList(board).size()); |
| 84 | } |
| 85 | |
| 86 | @Test |
| 87 | public void surroundedByEnemyStraight() { |
nothing calls this directly
no test coverage detected