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

Method moveAsRook

src/test/java/RookTest.java:16–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }
15
16 @Test
17 public void moveAsRook() {
18 Board board = new Board();
19 board.placeRook(3, 3, Color.BLACK);
20 System.out.println(board);
21 System.out.println(board.getPiece(3, 3).getMoveList(board));
22 Assert.assertEquals(14, board.getPiece(3, 3).getMoveList(board).size());
23 }
24
25 @Test
26 public void blockedByPawn() {

Callers

nothing calls this directly

Calls 3

placeRookMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected