1 2 3 4 5 6 7 8 9 10 11 12 13
use game::Game; pub trait Strategy<G: Game> { type Params; /// Decide the next move to make. fn decide(&mut self, &G) -> G::Move; /// Create the initial state for this strategy. fn create(Self::Params) -> Self; } pub mod negamax; pub mod mcts;