1 2 3 4 5 6 7 8 9 10 11
use game::Game; pub trait Strategy<G: Game> { type Params; fn decide(&mut self, &G) -> G::Move; fn create(Self::Params) -> Self; } pub mod negamax; pub mod mcts; pub mod mcts_parallel;
1 2 3 4 5 6 7 8 9 10 11
use game::Game; pub trait Strategy<G: Game> { type Params; fn decide(&mut self, &G) -> G::Move; fn create(Self::Params) -> Self; } pub mod negamax; pub mod mcts; pub mod mcts_parallel;