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

Method moveForward

src/test/java/KingTest.java:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6public class KingTest {
7 @Test
8 public void moveForward() {
9 Board board = new Board();
10 board.placeKing(0, 0, Color.BLACK);
11 board.placeKing(7, 7, Color.WHITE);
12 System.out.println(board);
13 System.out.println(board.getPiece(0, 0).getMoveList(board));
14 Assert.assertEquals(3, board.getPiece(0, 0).getMoveList(board).size());
15 }
16
17 @Test
18 public void moveAsKing() {

Callers

nothing calls this directly

Calls 3

placeKingMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected