class

Cards::Blackjack::Hand

Inherits Reference < Object

Constructors

new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, cards : Array(Cards::Card) = [] of Card)
Source

Instance methods

add_position
Source
any?(*args, **options)
Source
any?(*args, **options, &)
Source
blackjack
Source
blackjack?
Source
bust
Source
bust?
Source
cards
Source
cards_short_name
Source
check
Source
chip_stack_bet

@log : Symbol, String, String | Nil -> Nil

Source
chip_stack_bet_double
Source
chip_stack_winnings
Source
clear_cards(discard_stack : CardStack)
Source
cleared_chips?
Source
cleared_table?
Source
clearing_table?
Source
confirmed_bet=(confirmed_bet : Bool)
Source
confirmed_bet?
Source
deal(card_stack : CardStack, flip = true)
Source
dealing?
Source
dealt?
Source
display
Source
done(dealer : Dealer)
Source
draw(deck : Deck, screen_x, screen_y, bets = false)
Source
draw_bet(screen_x = 0, screen_y = 0)
Source
draw_hand_display(screen_x = 0, screen_y = 0)
Source
draw_message(screen_x = 0, screen_y = 0, y = 0)
Source
empty?(*args, **options)
Source
empty?(*args, **options, &)
Source
hitting=(hitting : Bool)
Source
hitting?
Source
log(method, message = "")

TODO: take this out, use SeatPlayer's log somehow, procs?

Source
log_name

TODO: take this out, use SeatPlayer's log somehow, procs?

Source
lose
Source
lose?(*args, **options)
Source
lose?(*args, **options, &)
Source
message
Source
pay_chip(chip : Chip, dealer : Dealer, player : SeatPlayer, from_dealer = false)
Source
pay_dealer_chip(dealer : Dealer, player : SeatPlayer, chip_stack : ChipStack)
Source
pay_player_chip(dealer : Dealer, player : SeatPlayer)
Source
play_done
Source
played?
Source
playing=(playing : Bool)
Source
playing?
Source
push
Source
push?(*args, **options)
Source
push?(*args, **options, &)
Source
settle_bet(dealer : Dealer, player : SeatPlayer)
Source
settled_bet?
Source
settling_bet=(settling_bet : Bool)
Source
settling_bet?
Source
size(*args, **options)
Source
size(*args, **options, &)
Source
soft_17?
Source
stand
Source
take
Source
twenty_one
Source
undealt?
Source
update(frame_time)
Source
update_positions
Source
value(cards = @cards)
Source
win(payout_ratio : Int32 | Float32 = 1)
Source
win?(*args, **options)
Source
win?(*args, **options, &)
Source
x=(value : Int32 | Float32)
Source
y=(value : Int32 | Float32)
Source

Nested types