()
| 113 | } |
| 114 | |
| 115 | @Test |
| 116 | public void surroundedByEnemyDiag() { |
| 117 | Board board = new Board(); |
| 118 | board.placeKing(3, 3, Color.BLACK); |
| 119 | board.placePawn(4, 4, Color.WHITE); |
| 120 | board.placePawn(2, 2, Color.WHITE); |
| 121 | board.placeRook(4, 2, Color.WHITE); |
| 122 | board.placeRook(2, 4, Color.WHITE); |
| 123 | board.placeKing(7, 7, Color.WHITE); |
| 124 | board.inCheck = true; |
| 125 | System.out.println(board); |
| 126 | System.out.println(board.getPiece(3, 3).getMoveList(board)); |
| 127 | Assert.assertEquals(2, board.getPiece(3, 3).getMoveList(board).size()); |
| 128 | } |
| 129 | |
| 130 | @Test |
| 131 | public void surroundedByTeam() { |
nothing calls this directly
no test coverage detected