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
fn decide(&mut self, _: &G) -> G::Move
Decide the next move to make.
fn create(_: Self::Params) -> Self
Create the initial state for this strategy.