class Game

Defined in:

game.cr

Constant Summary

MAX_BET = 10000000.0
MIN_BET = 500.0
SAVE_FILE = "bj.txt"
START_MONEY = 10000.0

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.format_money(money) #

[View source]

Instance Method Detail

def all_bets #

[View source]
def ask_insurance #

[View source]
def bet_options #

[View source]
def build_new_shoe #

[View source]
def clear #

[View source]
def current_bet : Float64 #

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

[View source]
def current_player_hand : Int32 #

[View source]
def current_player_hand=(current_player_hand : Int32) #

[View source]
def deal_new_hand #

[View source]
def dealer_hand : DealerHand #

[View source]
def dealer_hand=(dealer_hand : DealerHand) #

[View source]
def deck_type : Int32 #

[View source]
def deck_type=(deck_type : Int32) #

[View source]
def draw_hands #

[View source]
def face_type : Int32 #

[View source]
def face_type=(face_type : Int32) #

[View source]
def game_options #

[View source]
def get_new_bet #

[View source]
def get_new_deck_type #

[View source]
def get_new_face_type #

[View source]
def get_new_num_decks #

[View source]
def insure_hand #

[View source]
def load_game #

[View source]
def money : Float64 #

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

[View source]
def more_hands_to_play #

[View source]
def need_to_play_dealer_hand #

[View source]
def no_insurance #

[View source]
def normalize_current_bet #

[View source]
def num_decks : Int32 #

[View source]
def num_decks=(num_decks : Int32) #

[View source]
def pay_hands #

[View source]
def play_dealer_hand #

[View source]
def play_more_hands #

[View source]
def player_hands : Array(PlayerHand) #

[View source]
def player_hands=(player_hands : Array(PlayerHand)) #

[View source]
def quitting : Bool #

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

[View source]
def run #

[View source]
def save_game #

[View source]
def shoe : Shoe #

[View source]
def shoe=(shoe : Shoe) #

[View source]
def split_current_hand #

[View source]