()
| 44 | } |
| 45 | |
| 46 | @Test |
| 47 | public void surroundedByPieces() { |
| 48 | Board board = new Board(); |
| 49 | board.placeRook(3, 3, Color.BLACK); |
| 50 | board.placePawn(4, 3, Color.BLACK); |
| 51 | board.placePawn(3, 4, Color.BLACK); |
| 52 | board.placeRook(2, 3, Color.BLACK); |
| 53 | board.placeRook(3, 2, Color.BLACK); |
| 54 | System.out.println(board); |
| 55 | System.out.println(board.getPiece(3, 3).getMoveList(board)); |
| 56 | Assert.assertTrue(board.getPiece(3, 3).getMoveList(board).isEmpty()); |
| 57 | } |
| 58 | |
| 59 | @Test |
| 60 | public void surroundedByEnemy() { |
nothing calls this directly
no test coverage detected