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:
2025-06-27 14:56:51 -07:00
parent 6cc6e6a7ba
commit b80f039b93
5 changed files with 45 additions and 9 deletions
+1
View File
@@ -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,