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

Method surroundedByPiecesDiag

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

Source from the content-addressed store, hash-verified

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

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