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

Method blockedByEnemyPawn

src/test/java/KingTest.java:39–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

placeKingMethod · 0.95
placePawnMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected