Skip to content

Commit

Permalink
Re-adds ability to customize move selection when some eval are equals
Browse files Browse the repository at this point in the history
  • Loading branch information
fathzer committed Apr 25, 2024
1 parent 7a16381 commit 5fb6a93
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public GoReply get() {
if (search.isEmpty()) {
return new GoReply(null);
}
final EvaluatedMove<M> move = getChoice(search);
final EvaluatedMove<M> move = getSelected(board, search);
final GoReply goReply = new GoReply(toUCI(move.getContent()));
final Info info = new Info(search.getDepth());
final TranspositionTable<M> tt = engine.getTranspositionTable();
Expand Down Expand Up @@ -165,7 +165,7 @@ public void stop() {
};
}

private EvaluatedMove<M> getChoice(SearchHistory<M> history) {
protected EvaluatedMove<M> getSelected(B board, SearchHistory<M> history) {
return history.getBestMoves().get(0);
}

Expand Down

0 comments on commit 5fb6a93

Please sign in to comment.