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

Method notBlockedByEnemyPawn

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

Source from the content-addressed store, hash-verified

48 }
49
50 @Test
51 public void notBlockedByEnemyPawn() {
52 Board board = new Board();
53 board.placeKing(3, 3, Color.BLACK);
54 board.placePawn(5, 3, Color.WHITE);
55 board.placeKing(7, 7, Color.WHITE);
56 System.out.println(board);
57 System.out.println(board.getPiece(3, 3).getMoveList(board));
58 Assert.assertEquals(8, board.getPiece(3, 3).getMoveList(board).size());
59 }
60
61 @Test
62 public void notBlockedByEnemyPawnInFront() {

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