[][src]Trait ggpf::policies::SingleplayerPolicy

pub trait SingleplayerPolicy<T: Game> {
#[must_use]    fn solve<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        board: &'life1 T
    ) -> Pin<Box<dyn Future<Output = Vec<T::Move>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Single-player policy.

Required methods

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

Plans the sequence of moves to finish the game.

Loading content...

Implementors

impl<G: Singleplayer + Clone> SingleplayerPolicy<G> for RandomPolicy[src]

impl<G: Singleplayer + Clone> SingleplayerPolicy<G> for NMCSPolicy[src]

impl<G: Singleplayer + Clone, M: MoveCode<G> + Send> SingleplayerPolicy<G> for NRPAPolicy<G, M>[src]

Loading content...