[][src]Struct ggpf::policies::mcts::WithMCTSPolicy

pub struct WithMCTSPolicy<G, MCTS> where
    G: MCTSGame,
    MCTS: BaseMCTSPolicy<G>, 
{ pub base_mcts: MCTS, pub root: Option<MCTSNodeChild<G, MCTS>>, // some fields omitted }

Wrapper for MCTS policy.

Fields

base_mcts: MCTS

Structure that handle MCTS business logic.

root: Option<MCTSNodeChild<G, MCTS>>

Root node from the last exploration. Can be taken to gather exploration statistics.

Methods

impl<G, MCTS> WithMCTSPolicy<G, MCTS> where
    G: MCTSGame + Clone,
    MCTS: BaseMCTSPolicy<G>, 
[src]

pub fn new(p: MCTS, N_PLAYOUTS: usize) -> Self[src]

Instanciate a new MCTS policy, given a BaseMCTS instance.

Trait Implementations

impl<G, MCTS> MultiplayerPolicy<G> for WithMCTSPolicy<G, MCTS> where
    G: MCTSGame,
    MCTS: BaseMCTSPolicy<G> + Sync + Send
[src]

Auto Trait Implementations

impl<G, MCTS> RefUnwindSafe for WithMCTSPolicy<G, MCTS> where
    G: RefUnwindSafe,
    MCTS: RefUnwindSafe

impl<G, MCTS> Send for WithMCTSPolicy<G, MCTS> where
    MCTS: Send,
    <G as Base>::Move: Send + Sync,
    <MCTS as BaseMCTSPolicy<G>>::MoveInfo: Send + Sync,
    <MCTS as BaseMCTSPolicy<G>>::NodeInfo: Send + Sync

impl<G, MCTS> Sync for WithMCTSPolicy<G, MCTS> where
    MCTS: Sync,
    <G as Base>::Move: Send + Sync,
    <MCTS as BaseMCTSPolicy<G>>::MoveInfo: Send + Sync,
    <MCTS as BaseMCTSPolicy<G>>::NodeInfo: Send + Sync

impl<G, MCTS> Unpin for WithMCTSPolicy<G, MCTS> where
    G: Unpin,
    MCTS: Unpin

impl<G, MCTS> UnwindSafe for WithMCTSPolicy<G, MCTS> where
    G: UnwindSafe,
    MCTS: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> With for T