[−][src]Trait ggpf::game::Playable
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,
&'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.
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,
&'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.
Implementors
impl Playable for Breakthrough
[src]
fn play<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
m: &'life1 Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Playable for Hashcode20
[src]
fn play<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 Self::Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
m: &'life1 Self::Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Playable for MisereBreakthrough
[src]
fn play<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
m: &'life1 Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Playable for Gym
[src]
fn play<'life0, 'life1, 'async_trait>(
&'life0 mut self,
action: &'life1 usize
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
action: &'life1 usize
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Playable for WeakSchurNumber
[src]
fn play<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 Self::Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
m: &'life1 Self::Move
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl<G> Playable for Simulated<G> where
G: Features + 'static,
[src]
G: Features + 'static,
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,
[src]
&'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,