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

Method surroundedByEnemyDiag

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

Source from the content-addressed store, hash-verified

113 }
114
115 @Test
116 public void surroundedByEnemyDiag() {
117 Board board = new Board();
118 board.placeKing(3, 3, Color.BLACK);
119 board.placePawn(4, 4, Color.WHITE);
120 board.placePawn(2, 2, Color.WHITE);
121 board.placeRook(4, 2, Color.WHITE);
122 board.placeRook(2, 4, Color.WHITE);
123 board.placeKing(7, 7, Color.WHITE);
124 board.inCheck = true;
125 System.out.println(board);
126 System.out.println(board.getPiece(3, 3).getMoveList(board));
127 Assert.assertEquals(2, board.getPiece(3, 3).getMoveList(board).size());
128 }
129
130 @Test
131 public void surroundedByTeam() {

Callers

nothing calls this directly

Calls 5

placeKingMethod · 0.95
placePawnMethod · 0.95
placeRookMethod · 0.95
getPieceMethod · 0.95
getMoveListMethod · 0.45

Tested by

no test coverage detected