[−][src]Struct ggpf::game::meta::with_history::WithHistory
A game with its history.
Fields
state: G
Current game state.
Trait Implementations
impl<G: Base + Clone> Base for WithHistory<G>
[src]
type Move = G::Move
The type for a Move. Read more
fn possible_moves(&self) -> Vec<Self::Move>
[src]
fn is_finished(&self) -> bool
[src]
impl<G: Clone + Base> Clone for WithHistory<G>
[src]
fn clone(&self) -> WithHistory<G>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<G: Debug + Base> Debug for WithHistory<G>
[src]
impl<G: Base + Eq> Eq for WithHistory<G>
[src]
impl<G: Features + Clone + Sync + Send> Features for WithHistory<G>
[src]
type StateDim = <G::StateDim as Dimension>::Larger
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 = (<G::StateDim as Dimension>::Larger, G::Descriptor)
Game features descriptor, that can be used to retrieve dimensions without having access to a game instance. Read more
fn get_features(&self) -> Self::Descriptor
[src]
fn state_dimension(descr: &Self::Descriptor) -> Self::StateDim
[src]
fn action_dimension(descr: &Self::Descriptor) -> Self::ActionDim
[src]
fn state_to_feature(&self, pov: Self::Player) -> Array<f32, Self::StateDim>
[src]
fn moves_to_feature(
descr: &Self::Descriptor,
moves: &HashMap<Self::Move, f32>
) -> Array<f32, Self::ActionDim>
[src]
descr: &Self::Descriptor,
moves: &HashMap<Self::Move, f32>
) -> Array<f32, Self::ActionDim>
fn feature_to_moves(
&self,
features: &Array<f32, Self::ActionDim>
) -> HashMap<Self::Move, f32>
[src]
&self,
features: &Array<f32, Self::ActionDim>
) -> HashMap<Self::Move, f32>
fn all_feature_to_moves(
descr: &Self::Descriptor,
features: &Array<f32, Self::ActionDim>
) -> HashMap<Self::Move, f32>
[src]
descr: &Self::Descriptor,
features: &Array<f32, Self::ActionDim>
) -> HashMap<Self::Move, f32>
fn all_possible_moves(descr: &Self::Descriptor) -> Vec<Self::Move>
[src]
fn move_to_feature(
descr: &Self::Descriptor,
action: Self::Move
) -> Array<f32, Self::ActionDim>
[src]
descr: &Self::Descriptor,
action: Self::Move
) -> Array<f32, Self::ActionDim>
impl<G: Game + Clone + Sync + Send> Game for WithHistory<G>
[src]
type Player = G::Player
The type representing each player. Read more
fn players() -> Vec<Self::Player>
[src]
fn player_after(player: Self::Player) -> Self::Player
[src]
fn turn(&self) -> Self::Player
[src]
impl<G: Base + Hash> Hash for WithHistory<G>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<G: Base + PartialEq> PartialEq<WithHistory<G>> for WithHistory<G>
[src]
impl<G: Playable + Clone + Sync + Send> Playable for WithHistory<G>
[src]
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,
#[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,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = (Self::Move, f32)> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
impl<G: SingleWinner + Clone + Sync + Send> SingleWinner for WithHistory<G>
[src]
Auto Trait Implementations
impl<G> RefUnwindSafe for WithHistory<G> where
G: RefUnwindSafe,
G: RefUnwindSafe,
impl<G> Send for WithHistory<G>
impl<G> Sync for WithHistory<G>
impl<G> Unpin for WithHistory<G> where
G: Unpin,
G: Unpin,
impl<G> UnwindSafe for WithHistory<G> where
G: RefUnwindSafe + UnwindSafe,
G: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> FromPy<T> for T
fn from_py(t: T, Python) -> T
impl<G> Game for G where
G: Singleplayer,
[src]
G: Singleplayer,
type Player = u8
The type representing each player. Read more
fn players() -> Vec<<G as Game>::Player>
[src]
fn player_after(<G as Game>::Player) -> <G as Game>::Player
[src]
fn turn(&Self) -> <G as Game>::Player
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
U: FromPy<T>,
fn into_py(self, py: Python) -> U
impl<G> Playout for G where
G: Game + Clone + Send,
[src]
G: Game + Clone + Send,
#[must_use]fn playout_history<'life0, 'async_trait>(
&'life0 self,
pov: Self::Player
) -> Pin<Box<dyn Future<Output = (Self, Vec<(Self, Self::Move)>, f32)> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
pov: Self::Player
) -> Pin<Box<dyn Future<Output = (Self, Vec<(Self, Self::Move)>, f32)> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
#[must_use]fn playout_board<'life0, 'async_trait>(
&'life0 self,
pov: Self::Player
) -> Pin<Box<dyn Future<Output = (Self, f32)> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
pov: Self::Player
) -> Pin<Box<dyn Future<Output = (Self, f32)> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,