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

Method surroundedByEnemyStraight

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

Source from the content-addressed store, hash-verified

84 }
85
86 @Test
87 public void surroundedByEnemyStraight() {
88 Board board = new Board();
89 board.placeKing(3, 3, Color.BLACK);
90 board.placePawn(4, 3, Color.WHITE);
91 board.placePawn(3, 4, Color.WHITE);
92 board.placeRook(2, 3, Color.WHITE);
93 board.placeRook(3, 2, Color.WHITE);
94 board.placeKing(7, 7, Color.WHITE);
95 board.inCheck = true;
96 System.out.println(board);
97 System.out.println(board.getPiece(3, 3).getMoveList(board));
98 Assert.assertEquals(3, board.getPiece(3, 3).getMoveList(board).size());
99 }
100
101 @Test
102 public void surroundedByPiecesDiag() {

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