Trait gameai::strategies::Strategy
[−]
[src]
pub trait Strategy<G: Game> { type Params; fn decide(&mut self, _: &G) -> G::Move; fn create(_: Self::Params) -> Self; }
Associated Types
type Params
Required Methods
Implementors
impl<G> Strategy<G> for Negamax<G> where
G: RandGame + Send + Display + Hash + Eq,
G::Agent: Send,
G::Move: Send + Ord, type Params = NegamaxParams;impl<G> Strategy<G> for gameai::strategies::mcts::MCTS<G> where
G: RandGame + Display + Hash + Eq, type Params = MCTSParams;impl<G: Sync> Strategy<G> for gameai::strategies::mcts_parallel::MCTS<G> where
G: RandGame + Display + Hash + Eq, type Params = MCTSParams;