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

Method countAllMoves

src/main/java/Engine.java:19–21  ·  view source on GitHub ↗
(final Board board, final int depth)

Source from the content-addressed store, hash-verified

17 public Map<Long, Result> transpositionTable = new HashMap<>();
18
19 public int countAllMoves(final Board board, final int depth) {
20 return countAllMoves(board, depth, 1000);
21 }
22
23 public int countAllMoves(final Board board, final int depth, final int printAt) {
24 final List<Move> legalMoves = board.getLegalMoves();

Calls 6

makeMoveMethod · 0.95
getStringMethod · 0.95
fenRepresentationMethod · 0.95
isEmptyMethod · 0.80
copyMethod · 0.80
getLegalMovesMethod · 0.45