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

Method surroundedByEnemyDiag

src/test/java/QueenTest.java:85–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 @Test
86 public void surroundedByEnemyDiag() {
87 Board board = new Board();
88 board.placeQueen(3, 3, Color.BLACK);
89 board.placePawn(4, 4, Color.WHITE);
90 board.placePawn(2, 2, Color.WHITE);
91 board.placeRook(4, 2, Color.WHITE);
92 board.placeRook(2, 4, Color.WHITE);
93 System.out.println(board);
94 System.out.println(board.getPiece(3, 3).getMoveList(board));
95 Assert.assertEquals(18, board.getPiece(3, 3).getMoveList(board).size());
96 }
97
98 @Test
99 public void surroundedByTeam() {

Callers

nothing calls this directly

Calls 5

placeQueenMethod · 0.95
placePawnMethod · 0.95
placeRookMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected