Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 04a55f0a56 | |||
| a2711f341f | |||
| 48c93fa197 |
+3
-1
@@ -10,6 +10,8 @@ readme = "README.md"
|
|||||||
keywords = ["mcts", "rust", "monte_carlo", "tree", "ai", "ml"]
|
keywords = ["mcts", "rust", "monte_carlo", "tree", "ai", "ml"]
|
||||||
categories = ["algorithms", "data-structures"]
|
categories = ["algorithms", "data-structures"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
threads = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rand = "~0.9"
|
rand = "~0.9"
|
||||||
@@ -19,5 +21,5 @@ thiserror = "~2.0"
|
|||||||
divan = "0.1.21"
|
divan = "0.1.21"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "example"
|
name = "e2e"
|
||||||
harness = false
|
harness = false
|
||||||
|
|||||||
@@ -189,4 +189,3 @@ impl GameState for TicTacToe {
|
|||||||
&self.current_player
|
&self.current_player
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,7 +40,6 @@ fn main() {
|
|||||||
// Find the best move
|
// Find the best move
|
||||||
match mcts.search() {
|
match mcts.search() {
|
||||||
Ok(action) => {
|
Ok(action) => {
|
||||||
mcts.print_tree();
|
|
||||||
println!(
|
println!(
|
||||||
"AI chooses: {} (row {}, col {})",
|
"AI chooses: {} (row {}, col {})",
|
||||||
action.index,
|
action.index,
|
||||||
|
|||||||
Reference in New Issue
Block a user