MCPcopy Index your code
hub / github.com/coding-parrot/chess-engine / blockCheck

Method blockCheck

src/test/java/BoardTest.java:21–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 4

placeKingMethod · 0.95
placeRookMethod · 0.95
placeBishopMethod · 0.95
getLegalMovesMethod · 0.95

Tested by

no test coverage detected