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

Method removeMoves

src/main/java/game/Board.java:616–619  ·  view source on GitHub ↗
(Cell position)

Source from the content-addressed store, hash-verified

614 }
615
616 private void removeMoves(Cell position) {
617 moves.remove(position);
618 guards.remove(position);
619 }
620
621 private void moveOrPromote(Move move) {
622 if (move.piece.sameType(PieceType.PAWN) && move.target.row == (playerToMove == Color.BLACK ? 0 : 7)) {

Callers 4

updateKingMovesMethod · 0.95
updateForClearCellMethod · 0.95
updateForBlockedCellMethod · 0.95
removeUnusedEnpassantMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected