class Cards::Blackjack::Manager

Defined in:

cards/blackjack/manager.cr

Constant Summary

DEFAULT_NUMBER_OF_DECKS = 6
SHUFFLE_LIMIT_PERCENT = 0.3_f32

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def bets_ready? #

[View source]
def deal(player : CardPlayer) #

[View source]
def dealer : Dealer #

[View source]
def deck : Deck #

[View source]
def deck=(deck : Deck) #

[View source]
def decks : Int32 #

[View source]
def done(player : CardPlayer) #

[View source]
def draw(screen_x = 0, screen_y = 0) #

[View source]
def first_turn_and_dealer?(player : CardPlayer) #

[View source]
def manage_turn #

[View source]
def new_hand #

[View source]
def next_turn #

[View source]
def play(player : CardPlayer) #

[View source]
def play_hand? #

[View source]
def played? #

[View source]
def players : Array(CardPlayer) #

[View source]
def remove_leaving_players #

[View source]
def seat_players : Array(SeatPlayer) #

[View source]
def settle_bet_clear_hands(player : CardPlayer) #

[View source]
def shuffle #

[View source]
def shuffle? #

[View source]
def shuffle_setup #

[View source]
def shuffling? : Bool #

[View source]
def take_sample(from : CardStack, to : CardStack, frames = 16) #

[View source]
def turn_player #

[View source]
def update(frame_time) #

[View source]