pub enum PlayerAgent<G: Game> {
Human,
Ai(Box<dyn Bot<G>>),
}Expand description
Who is deciding a seat’s moves.
A seat with no entry in Simulator’s agent map behaves like Human:
it blocks Simulator::step rather than panicking or being skipped, so a
game can add players without wiring every seat up front.
Variants§
Human
A seat driven by external input via Simulator::select_human_action.
Ai(Box<dyn Bot<G>>)
A seat driven by a [Bot], asked for a move every time it is active.
Auto Trait Implementations§
impl<G> Freeze for PlayerAgent<G>
impl<G> !RefUnwindSafe for PlayerAgent<G>
impl<G> !Send for PlayerAgent<G>
impl<G> !Sync for PlayerAgent<G>
impl<G> Unpin for PlayerAgent<G>
impl<G> UnsafeUnpin for PlayerAgent<G>
impl<G> !UnwindSafe for PlayerAgent<G>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more