[][src]Trait ggpf::game::Playable

pub trait Playable: Base {
#[must_use]    fn play<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        action: &'life1 Self::Move
    ) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; #[must_use] fn random_move<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = (Self::Move, f32)> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... } }

Mutable game by playing moves.

Required methods

#[must_use]fn play<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    action: &'life1 Self::Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Mutates game state playing the given action. Yields a reward to the player.

Loading content...

Provided methods

#[must_use]fn random_move<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = (Self::Move, f32)> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

Plays a random move. Yields a reward.

Loading content...

Implementors

impl Playable for Breakthrough[src]

impl Playable for Hashcode20[src]

impl Playable for MisereBreakthrough[src]

impl Playable for Gym[src]

impl Playable for WeakSchurNumber[src]

impl<G> Playable for Simulated<G> where
    G: Features + 'static, 
[src]

impl<G: Playable + Clone + Sync + Send> Playable for WithHistory<G>[src]

Loading content...