pub struct Coup { /* private fields */ }Expand description
The Coup game engine.
Implementations§
Source§impl Coup
impl Coup
Sourcepub fn new(user_bots: Vec<Box<dyn BotInterface>>) -> Self
pub fn new(user_bots: Vec<Box<dyn BotInterface>>) -> Self
Start a new Coup game by passing in all your bots in a Vec.
Sourcepub fn new_deck() -> Vec<Card>
pub fn new_deck() -> Vec<Card>
A public method to get a new deck. This can be used by bots to make sure you get the same amount of cards as the engine does.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Coup
impl !RefUnwindSafe for Coup
impl !Send for Coup
impl !Sync for Coup
impl Unpin for Coup
impl !UnwindSafe for Coup
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