[][src]Struct ggpf::game::openai::Gym

pub struct Gym { /* fields omitted */ }

OpenAI Gym game instance.

Each instance is connected to a remote runner. This is because of Rust limitations somehow it's not possible to have both tensorflow and pyo3 in the same crate..

Methods

impl Gym[src]

pub async fn new(__arg0: GymRunnerClient, game: String) -> Self[src]

Given a connected client, build a game based on Gym.

Trait Implementations

impl Base for Gym[src]

type Move = usize

The type for a Move. Read more

impl Clone for Gym[src]

impl Debug for Gym[src]

impl Features for Gym[src]

type StateDim = Ix3

Type dimension of the game state feature space. Read more

type ActionDim = Ix1

Type dimension of the action feature space. Read more

type Descriptor = (Vec<usize>, Ix3, Ix1)

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

impl Playable for Gym[src]

impl Singleplayer for Gym[src]

Auto Trait Implementations

impl !RefUnwindSafe for Gym

impl Send for Gym

impl Sync for Gym

impl Unpin for Gym

impl !UnwindSafe for Gym

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