()
| 19 | } |
| 20 | |
| 21 | @Test |
| 22 | public void blockCheck() { |
| 23 | Board board = new Board(); |
| 24 | board.placeKing(2, 5, Color.WHITE); |
| 25 | board.placeRook(2, 0, Color.BLACK); |
| 26 | board.placeKing(4, 4, Color.BLACK); |
| 27 | board.placeBishop(1, 1, Color.WHITE); |
| 28 | board.inCheck = true; |
| 29 | System.out.println(board); |
| 30 | System.out.println(board.getLegalMoves()); |
| 31 | Assert.assertEquals(6, board.getLegalMoves().size()); |
| 32 | } |
| 33 | |
| 34 | @Test |
| 35 | public void captureAndReturnCheck() { |
nothing calls this directly
no test coverage detected