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

Method blockedByPawn

src/test/java/QueenTest.java:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 @Test
26 public void blockedByPawn() {
27 Board board = new Board();
28 board.placeQueen(3, 3, Color.BLACK);
29 board.placePawn(4, 3, Color.BLACK);
30 System.out.println(board);
31 System.out.println(board.getPiece(3, 3).getMoveList(board));
32 Assert.assertEquals(23, board.getPiece(3, 3).getMoveList(board).size());
33 Assert.assertTrue(board.getPiece(3, 3).getMoveList(board).stream().noneMatch(c -> c.captureMove));
34 }
35
36 @Test
37 public void blockedByEnemyPawn() {

Callers

nothing calls this directly

Calls 4

placeQueenMethod · 0.95
placePawnMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected