class Cards::Blackjack::Manager
- Cards::Blackjack::Manager
- Reference
- Object
Defined in:
cards/blackjack/manager.crConstant Summary
-
DEFAULT_NUMBER_OF_DECKS =
6
-
SHUFFLE_LIMIT_PERCENT =
0.3_f32
Constructors
Instance Method Summary
- #bets_ready?
- #deal(player : CardPlayer)
- #dealer : Dealer
- #deck : Deck
- #deck=(deck : Deck)
- #decks : Int32
- #done(player : CardPlayer)
- #draw(screen_x = 0, screen_y = 0)
- #first_turn_and_dealer?(player : CardPlayer)
- #manage_turn
- #new_hand
- #next_turn
- #play(player : CardPlayer)
- #play_hand?
- #played?
- #players : Array(CardPlayer)
- #remove_leaving_players
- #seat_players : Array(SeatPlayer)
- #settle_bet_clear_hands(player : CardPlayer)
- #shuffle
- #shuffle?
- #shuffle_setup
- #shuffling? : Bool
- #take_sample(from : CardStack, to : CardStack, frames = 16)
- #turn_player
- #update(frame_time)
Constructor Detail
def self.new(deck : Cards::Deck, decks : Int32 = DEFAULT_NUMBER_OF_DECKS, seats : Array(Cards::Blackjack::Seat) = [] of Seat, seat_players = [] of SeatPlayer, dealer : Cards::Blackjack::Dealer = Dealer.new)
#