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

Method surroundedByPiecesDiag

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

Source from the content-addressed store, hash-verified

99 }
100
101 @Test
102 public void surroundedByPiecesDiag() {
103 Board board = new Board();
104 board.placeKing(3, 3, Color.BLACK);
105 board.placePawn(4, 4, Color.BLACK);
106 board.placePawn(2, 2, Color.BLACK);
107 board.placeRook(4, 2, Color.BLACK);
108 board.placeRook(2, 4, Color.BLACK);
109 board.placeKing(7, 7, Color.WHITE);
110 System.out.println(board);
111 System.out.println(board.getPiece(3, 3).getMoveList(board));
112 Assert.assertEquals(4, board.getPiece(3, 3).getMoveList(board).size());
113 }
114
115 @Test
116 public void surroundedByEnemyDiag() {

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