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

Method blockedByEnemyPawn

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

Source from the content-addressed store, hash-verified

34 }
35
36 @Test
37 public void blockedByEnemyPawn() {
38 Board board = new Board();
39 board.placeQueen(3, 3, Color.BLACK);
40 board.placePawn(4, 3, Color.WHITE);
41 System.out.println(board);
42 System.out.println(board.getPiece(3, 3).getMoveList(board));
43 Assert.assertEquals(24, board.getPiece(3, 3).getMoveList(board).size());
44 }
45
46 @Test
47 public void surroundedByPiecesStraight() {

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