Add tests, remove main in MonteCarloTreeSearch (#5673)

This commit is contained in:
Hardik Pawar
2024-10-11 01:50:39 +05:30
committed by GitHub
parent b1724fa737
commit e8b32513c8
3 changed files with 127 additions and 6 deletions

View File

@ -39,12 +39,6 @@ public class MonteCarloTreeSearch {
static final int WIN_SCORE = 10;
static final int TIME_LIMIT = 500; // Time the algorithm will be running for (in milliseconds).
public static void main(String[] args) {
MonteCarloTreeSearch mcts = new MonteCarloTreeSearch();
mcts.monteCarloTreeSearch(mcts.new Node(null, true));
}
/**
* Explores a game tree using Monte Carlo Tree Search (MCTS) and returns the
* most promising node.