class Cards::Blackjack::GameMode

Defined in:

cards/blackjack/game_mode.cr

Constant Summary

BLACKJACK_PAYOUT_RATIO = 1.5_f32
SIDE_MARGIN = Card.width * 2

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Cards::GameMode

draw draw, exit? exit?, game_over? : Bool game_over?, update(frame_time) update

Constructor methods inherited from class Cards::GameMode

new(pull : JSON::PullParser)
new
new

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.blackjack_payout_ratio #

[View source]

Instance Method Detail

def draw #

[View source]
def update(frame_time) #

[View source]