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

Method surroundedByPiecesStraight

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

Source from the content-addressed store, hash-verified

70 }
71
72 @Test
73 public void surroundedByPiecesStraight() {
74 Board board = new Board();
75 board.placeKing(3, 3, Color.BLACK);
76 board.placePawn(4, 3, Color.BLACK);
77 board.placePawn(3, 4, Color.BLACK);
78 board.placeRook(2, 3, Color.BLACK);
79 board.placeRook(3, 2, Color.BLACK);
80 board.placeKing(7, 7, Color.WHITE);
81 System.out.println(board);
82 System.out.println(board.getPiece(3, 3).getMoveList(board));
83 Assert.assertEquals(4, board.getPiece(3, 3).getMoveList(board).size());
84 }
85
86 @Test
87 public void surroundedByEnemyStraight() {

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