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

Method moveAsKing

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

Source from the content-addressed store, hash-verified

15 }
16
17 @Test
18 public void moveAsKing() {
19 Board board = new Board();
20 board.placeKing(3, 3, Color.BLACK);
21 board.placeKing(3, 7, Color.WHITE);
22 System.out.println(board);
23 System.out.println(board.getPiece(3, 3).getMoveList(board));
24 Assert.assertEquals(8, board.getPiece(3, 3).getMoveList(board).size());
25 }
26
27 @Test
28 public void blockedByPawn() {

Callers

nothing calls this directly

Calls 3

placeKingMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected