Struct gameai::strategies::negamax::Negamax
[−]
[src]
pub struct Negamax<G: Hash> { pub params: NegamaxParams, // some fields omitted }
Fields
params: NegamaxParams
Methods
impl<G> Negamax<G> where
G: RandGame + Send + Display + Hash + Eq,
G::Agent: Send,
G::Move: Send + Ord,
[src]
G: RandGame + Send + Display + Hash + Eq,
G::Agent: Send,
G::Move: Send + Ord,
Trait Implementations
impl<G> Strategy<G> for Negamax<G> where
G: RandGame + Send + Display + Hash + Eq,
G::Agent: Send,
G::Move: Send + Ord,
[src]
G: RandGame + Send + Display + Hash + Eq,
G::Agent: Send,
G::Move: Send + Ord,
type Params = NegamaxParams
fn decide(&mut self, game: &G) -> G::Move
[src]
Decide the next move to make.
fn create(params: NegamaxParams) -> Self
[src]
Create the initial state for this strategy.