class PlayerHand

Defined in:

player_hand.cr

Constant Summary

MAX_PLAYER_HANDS = 7

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Hand

cards : Array(Card) cards, cards=(cards : Array(Card)) cards=, done? done?, is_blackjack? is_blackjack?, played : Bool played, played=(played : Bool) played=

Constructor methods inherited from class Hand

new new

Constructor Detail

def self.new(game : Game, bet : Float64) #

[View source]

Class Method Detail

def self.draw(game : Game, player_hand : PlayerHand, index : Int32) #

[View source]
def self.get_value(player_hand : PlayerHand, count_method : Hand::Count) #

[View source]
def self.is_busted?(player_hand : PlayerHand) #

[View source]

Instance Method Detail

def bet : Float64 #

[View source]
def bet=(bet : Float64) #

[View source]
def can_dbl? #

[View source]
def can_hit? #

[View source]
def can_split? #

[View source]
def can_stand? #

[View source]
def clone #

[View source]
def dbl #

[View source]
def game : Game #

[View source]
def game=(game : Game) #

[View source]
def get_action #

[View source]
def hit #

[View source]
def is_done? #

[View source]
def paid : Bool #

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

[View source]
def played : Bool #

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

[View source]
def process #

[View source]
def stand #

[View source]
def status : Hand::Status #

[View source]
def status=(status : Hand::Status) #

[View source]
def stood : Bool #

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

[View source]