MCPcopy Create free account
hub / github.com/coding-parrot/chess-engine / blockedByEnemyPawn

Method blockedByEnemyPawn

src/test/java/KnightTest.java:37–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

placeKnightMethod · 0.95
placePawnMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected