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

Method getMoveList

src/main/java/game/Board.java:82–90  ·  view source on GitHub ↗
(final Piece piece)

Source from the content-addressed store, hash-verified

80 }
81
82 public Set<Move> getMoveList(final Piece piece) {
83 final Cell cell = piece.position;
84 if (pieces.get(cell) != null) {
85 populateMoves(cell);
86 return moves.get(cell);
87 } else {
88 throw new NullPointerException();
89 }
90 }
91
92 public Set<Move> getGuardList(final Piece piece) {
93 final Cell cell = piece.position;

Callers 15

getLegalMovesMethod · 0.95
getMovesWithinPinMethod · 0.95
lookForChecksMethod · 0.95
moveForwardMethod · 0.45
moveForwardDoubleMethod · 0.45
canCaptureMethod · 0.45
canCaptureBlackMethod · 0.45
canCaptureEnPassantMethod · 0.45

Calls 2

populateMovesMethod · 0.95
getMethod · 0.45

Tested by 15

moveForwardMethod · 0.36
moveForwardDoubleMethod · 0.36
canCaptureMethod · 0.36
canCaptureBlackMethod · 0.36
canCaptureEnPassantMethod · 0.36
moveForwardMethod · 0.36
moveAsRookMethod · 0.36
blockedByPawnMethod · 0.36