[][src]Struct ggpf::game::meta::simulated::Simulated

pub struct Simulated<G> where
    G: Features
{ /* fields omitted */ }

Simulated game

Methods

impl<G> Simulated<G> where
    G: Features
[src]

pub fn new(
    turn: G::Player,
    repr_state: Array<f32, Ix3>,
    game_descriptor: G::Descriptor,
    initial_possible_moves: Vec<G::Move>,
    dynamics_evaluator: Sender<DynamicsEvaluatorChannel>,
    support_size: usize
) -> Self
[src]

Instanciate a new simulated game.

Params

  • turn: starting player.
  • repr_state: initial repr state.
  • initial_possible_moves: available moves for the initial state.
  • dynamics_evaluator: evaluator for the dynamics network.

Trait Implementations

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

type Move = G::Move

The type for a Move. Read more

impl<G> Clone for Simulated<G> where
    G: Features
[src]

impl<G> Debug for Simulated<G> where
    G: Features
[src]

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

type StateDim = Ix3

Type dimension of the game state feature space. Read more

type ActionDim = G::ActionDim

Type dimension of the action feature space. Read more

type Descriptor = (Ix3, G::Descriptor)

Game features descriptor, that can be used to retrieve dimensions without having access to a game instance. Read more

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

type Player = G::Player

The type representing each player. Read more

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

Auto Trait Implementations

impl<G> !RefUnwindSafe for Simulated<G>

impl<G> Send for Simulated<G> where
    <G as Features>::Descriptor: Send,
    <G as Base>::Move: Send,
    <G as Game>::Player: Send

impl<G> Sync for Simulated<G> where
    <G as Features>::Descriptor: Sync,
    <G as Base>::Move: Sync,
    <G as Game>::Player: Sync

impl<G> Unpin for Simulated<G> where
    <G as Features>::Descriptor: Unpin,
    <G as Base>::Move: Unpin,
    <G as Game>::Player: Unpin

impl<G> !UnwindSafe for Simulated<G>

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<G> Game for G where
    G: Singleplayer
[src]

type Player = u8

The type representing each player. Read more

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

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

impl<G> Playout for G where
    G: Game + Clone + Send
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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