class

Game

Inherits Reference < Object

Constants

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

Constructors

Class methods

format_money(money)
Source

Instance methods

all_bets
Source
ask_insurance
Source
bet_options
Source
build_new_shoe
Source
clear
Source
current_bet
Source
current_bet=(current_bet : Float64)
Source
current_player_hand
Source
current_player_hand=(current_player_hand : Int32)
Source
deal_new_hand
Source
dealer_hand
Source
dealer_hand=(dealer_hand : DealerHand)
Source
deck_type
Source
deck_type=(deck_type : Int32)
Source
draw_hands
Source
face_type
Source
face_type=(face_type : Int32)
Source
game_options
Source
get_new_bet
Source
get_new_deck_type
Source
get_new_face_type
Source
get_new_num_decks
Source
insure_hand
Source
load_game
Source
money
Source
money=(money : Float64)
Source
more_hands_to_play
Source
need_to_play_dealer_hand
Source
no_insurance
Source
normalize_current_bet
Source
num_decks
Source
num_decks=(num_decks : Int32)
Source
pay_hands
Source
play_dealer_hand
Source
play_more_hands
Source
player_hands
Source
player_hands=(player_hands : Array(PlayerHand))
Source
quitting
Source
quitting=(quitting : Bool)
Source
save_game
Source
shoe
Source
shoe=(shoe : Shoe)
Source
split_current_hand
Source