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

Method canCaptureBlackBlocked

src/test/java/PawnTest.java:85–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 @Test
86 public void canCaptureBlackBlocked() {
87 final Board board = new Board();
88 board.placePawn(6, 6, Color.BLACK);
89 board.placePawn(5, 6, Color.BLACK);
90 board.placePawn(5, 5, Color.WHITE);
91 System.out.println(board);
92 System.out.println(board.getPiece(6, 6).getMoveList(board));
93 Assert.assertEquals(1, board.getPiece(6, 6).getMoveList(board).size());
94 }
95
96 @Test
97 public void canCaptureEnPassant() {

Callers

nothing calls this directly

Calls 3

placePawnMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected