()
| 84 | } |
| 85 | |
| 86 | @Test |
| 87 | public void surroundedByEnemyStraight() { |
| 88 | Board board = new Board(); |
| 89 | board.placeKing(3, 3, Color.BLACK); |
| 90 | board.placePawn(4, 3, Color.WHITE); |
| 91 | board.placePawn(3, 4, Color.WHITE); |
| 92 | board.placeRook(2, 3, Color.WHITE); |
| 93 | board.placeRook(3, 2, Color.WHITE); |
| 94 | board.placeKing(7, 7, Color.WHITE); |
| 95 | board.inCheck = true; |
| 96 | System.out.println(board); |
| 97 | System.out.println(board.getPiece(3, 3).getMoveList(board)); |
| 98 | Assert.assertEquals(3, board.getPiece(3, 3).getMoveList(board).size()); |
| 99 | } |
| 100 | |
| 101 | @Test |
| 102 | public void surroundedByPiecesDiag() { |
nothing calls this directly
no test coverage detected