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

Method cantMoveForwardOpponent

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

Source from the content-addressed store, hash-verified

44 }
45
46 @Test
47 public void cantMoveForwardOpponent() {
48 final Board board = new Board();
49 board.placePawn(2, 1, Color.WHITE);
50 board.placePawn(3, 1, Color.BLACK);
51 System.out.println(board);
52 Assert.assertTrue(board.getPiece(2, 1).getMoveList(board).isEmpty());
53 }
54
55 @Test
56 public void cantMoveForwardSameColor() {

Callers

nothing calls this directly

Calls 4

placePawnMethod · 0.95
getPieceMethod · 0.95
isEmptyMethod · 0.80
getMoveListMethod · 0.45

Tested by

no test coverage detected