Adding a basic print_tree function to visualize the MCTS search tree
This probably is not a good thing to run on a very large tree.
This commit is contained in:
@@ -40,6 +40,7 @@ fn main() {
|
||||
// Find the best move
|
||||
match mcts.search() {
|
||||
Ok(action) => {
|
||||
mcts.print_tree();
|
||||
println!(
|
||||
"AI chooses: {} (row {}, col {})",
|
||||
action.index,
|
||||
|
||||
Reference in New Issue
Block a user