MCPcopy Index your code
hub / github.com/coding-parrot/chess-engine / placeQueen

Method placeQueen

src/main/java/game/Board.java:164–170  ·  view source on GitHub ↗
(final int row, final int col, final Color color)

Source from the content-addressed store, hash-verified

162 }
163
164 public void placeQueen(final int row, final int col, final Color color) {
165 final Cell position = Cell.get(row, col);
166 final Piece queen = Piece.get(color, position, PieceType.QUEEN);
167 pieces.put(position, queen);
168 playerPieces.get(color).add(queen);
169 updateHashForAddition(queen);
170 }
171
172 public void placeKing(final int row, final int col, final Color color) {
173 final Cell position = Cell.get(row, col);

Callers 14

checkMateIn1Method · 0.95
moveForwardMethod · 0.95
moveAsQueenMethod · 0.95
blockedByPawnMethod · 0.95
blockedByEnemyPawnMethod · 0.95
surroundedByEnemyDiagMethod · 0.95
surroundedByTeamMethod · 0.95
surroundedByEnemyMethod · 0.95
getStartBoardMethod · 0.95

Calls 4

getMethod · 0.95
getMethod · 0.95
updateHashForAdditionMethod · 0.95
getMethod · 0.45

Tested by 11

checkMateIn1Method · 0.76
moveForwardMethod · 0.76
moveAsQueenMethod · 0.76
blockedByPawnMethod · 0.76
blockedByEnemyPawnMethod · 0.76
surroundedByEnemyDiagMethod · 0.76
surroundedByTeamMethod · 0.76
surroundedByEnemyMethod · 0.76