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

Method notBlockedByEnemyPawn

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

Source from the content-addressed store, hash-verified

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

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