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

Method populateMoves

src/main/java/game/Board.java:102–108  ·  view source on GitHub ↗
(Cell cell)

Source from the content-addressed store, hash-verified

100 }
101
102 private void populateMoves(Cell cell) {
103 if (!moves.containsKey(cell) || !guards.containsKey(cell)) {
104 final LegalMoves legalMoves = pieces.get(cell).getLegalMoves(this);
105 moves.put(cell, legalMoves.moves);
106 guards.put(cell, legalMoves.guards);
107 }
108 }
109
110 public static Board getStartBoard() {
111 final Board board = new Board();

Callers 2

getMoveListMethod · 0.95
getGuardListMethod · 0.95

Calls 2

getLegalMovesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected