()
| 99 | } |
| 100 | |
| 101 | @Test |
| 102 | public void surroundedByPiecesDiag() { |
| 103 | Board board = new Board(); |
| 104 | board.placeKing(3, 3, Color.BLACK); |
| 105 | board.placePawn(4, 4, Color.BLACK); |
| 106 | board.placePawn(2, 2, Color.BLACK); |
| 107 | board.placeRook(4, 2, Color.BLACK); |
| 108 | board.placeRook(2, 4, Color.BLACK); |
| 109 | board.placeKing(7, 7, Color.WHITE); |
| 110 | System.out.println(board); |
| 111 | System.out.println(board.getPiece(3, 3).getMoveList(board)); |
| 112 | Assert.assertEquals(4, board.getPiece(3, 3).getMoveList(board).size()); |
| 113 | } |
| 114 | |
| 115 | @Test |
| 116 | public void surroundedByEnemyDiag() { |
nothing calls this directly
no test coverage detected