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

Method surroundedByTeam

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

Source from the content-addressed store, hash-verified

108 }
109
110 @Test
111 public void surroundedByTeam() {
112 Board board = new Board();
113 board.placeKnight(3, 3, Color.WHITE);
114 board.placePawn(4, 4, Color.WHITE);
115 board.placePawn(2, 2, Color.WHITE);
116 board.placeRook(4, 2, Color.WHITE);
117 board.placeRook(2, 4, Color.WHITE);
118 board.placePawn(4, 3, Color.WHITE);
119 board.placePawn(3, 4, Color.WHITE);
120 board.placeRook(2, 3, Color.WHITE);
121 board.placeRook(3, 2, Color.WHITE);
122 System.out.println(board);
123 System.out.println(board.getPiece(3, 3).getMoveList(board));
124 Assert.assertEquals(8, board.getPiece(3, 3).getMoveList(board).size());
125 }
126
127 @Test
128 public void surroundedByEnemy() {

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