class Cards::Blackjack::Hand

Defined in:

cards/blackjack/hand.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, cards : Array(Cards::Card) = [] of Card) #

[View source]

Instance Method Detail

def add_position #

[View source]
def any?(*args, **options) #

[View source]
def any?(*args, **options, &) #

[View source]
def bet #

[View source]
def blackjack #

[View source]
def blackjack? : Bool #

[View source]
def bust #

[View source]
def bust? : Bool #

[View source]
def cards : Array(Card) #

[View source]
def cards_short_name #

[View source]
def check #

[View source]
def chip_stack_bet : ChipStack #

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


[View source]
def chip_stack_bet_double : ChipStack #

[View source]
def chip_stack_winnings : ChipStack #

[View source]
def clear_cards(discard_stack : CardStack) #

[View source]
def cleared_chips? #

[View source]
def cleared_table? #

[View source]
def clearing_table? : Bool #

[View source]
def confirmed_bet=(confirmed_bet : Bool) #

[View source]
def confirmed_bet? : Bool #

[View source]
def deal(card_stack : CardStack, flip = true) #

[View source]
def dealing? #

[View source]
def dealt? #

[View source]
def display #

[View source]
def done(dealer : Dealer) #

[View source]
def draw(deck : Deck, screen_x, screen_y, bets = false) #

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

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

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

[View source]
def empty?(*args, **options) #

[View source]
def empty?(*args, **options, &) #

[View source]
def hit #

[View source]
def hitting=(hitting : Bool) #

[View source]
def hitting? : Bool #

[View source]
def log(method, message = "") #

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


[View source]
def log_name #

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


[View source]
def lose #

[View source]
def lose?(*args, **options) #

[View source]
def lose?(*args, **options, &) #

[View source]
def message : String #

[View source]
def paid? #

[View source]
def pay_chip(chip : Chip, dealer : Dealer, player : SeatPlayer, from_dealer = false) #

[View source]
def pay_dealer_chip(dealer : Dealer, player : SeatPlayer, chip_stack : ChipStack) #

[View source]
def pay_player_chip(dealer : Dealer, player : SeatPlayer) #

[View source]
def play_done #

[View source]
def played? : Bool #

[View source]
def playing=(playing : Bool) #

[View source]
def playing? : Bool #

[View source]
def push #

[View source]
def push?(*args, **options) #

[View source]
def push?(*args, **options, &) #

[View source]
def settle_bet(dealer : Dealer, player : SeatPlayer) #

[View source]
def settled_bet? #

[View source]
def settling_bet=(settling_bet : Bool) #

[View source]
def settling_bet? : Bool #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def soft_17? #

[View source]
def stand #

[View source]
def take : Card #

[View source]
def twenty_one #

[View source]
def undealt? #

[View source]
def update(frame_time) #

[View source]
def update_positions #

[View source]
def value(cards = @cards) #

[View source]
def win(payout_ratio : Int32 | Float32 = 1) #

[View source]
def win?(*args, **options) #

[View source]
def win?(*args, **options, &) #

[View source]
def x : Int32 | Float32 #

[View source]
def x=(value : Int32 | Float32) #

[View source]
def y : Int32 | Float32 #

[View source]
def y=(value : Int32 | Float32) #

[View source]