Struct twentyone::game::GameConfig[][src]

pub struct GameConfig {
    pub stand_soft_17: bool,
    pub blackjack_payout: f32,
    pub splitting: bool,
    pub doubling_down: bool,
    pub double_after_split: bool,
    pub min_bet: i32,
    pub max_bet: i32,
    pub shoe_deck_count: u8,
    pub low_cards_threshold: usize,
}

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

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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>,