MCPcopy Create free account
hub / github.com/coding-parrot/chess-engine / surroundedByEnemyDiag

Method surroundedByEnemyDiag

src/test/java/KnightTest.java:97–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 @Test
98 public void surroundedByEnemyDiag() {
99 Board board = new Board();
100 board.placeKnight(3, 3, Color.BLACK);
101 board.placePawn(4, 4, Color.WHITE);
102 board.placePawn(2, 2, Color.WHITE);
103 board.placeRook(4, 2, Color.WHITE);
104 board.placeRook(2, 4, Color.WHITE);
105 System.out.println(board);
106 System.out.println(board.getPiece(3, 3).getMoveList(board));
107 Assert.assertEquals(8, board.getPiece(3, 3).getMoveList(board).size());
108 }
109
110 @Test
111 public void surroundedByTeam() {

Callers

nothing calls this directly

Calls 5

placeKnightMethod · 0.95
placePawnMethod · 0.95
placeRookMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected