Struct twentyone::game::GameConfig [−][src]
Configure different aspects of the game
Fields
stand_soft_17: bool
Whether the dealer should stand on soft 17 or hit
blackjack_payout: f32
The multiplier for when a player gets a blackjack
splitting: bool
Whether to allow splitting
doubling_down: bool
Whether to allow doubling down
double_after_split: bool
Whether to allow doubling down after splitting
min_bet: i32
The minimum player bet
max_bet: i32
The maximum player bet
shoe_deck_count: u8
How many decks to add to the new shoe if auto_new_shoe
is enabled
low_cards_threshold: usize
How many cards must be left in a deck before DealerRequest::LowCards is called.
If auto_new_shoe
is enabled, the new shoe will be created when this number is reached.
Auto Trait Implementations
impl RefUnwindSafe for GameConfig
impl Send for GameConfig
impl Sync for GameConfig
impl Unpin for GameConfig
impl UnwindSafe for GameConfig
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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.
pub 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>,