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

Method cantMoveForwardSameColor

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

Source from the content-addressed store, hash-verified

53 }
54
55 @Test
56 public void cantMoveForwardSameColor() {
57 final Board board = new Board();
58 board.placePawn(2, 1, Color.WHITE);
59 board.placePawn(3, 1, Color.WHITE);
60 System.out.println(board);
61 Assert.assertTrue(board.getPiece(2, 1).getMoveList(board).isEmpty());
62 }
63
64 @Test
65 public void canCapture() {

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