class DAlembert

Defined in:

roulette/algorithm/d_alembert.cr

Instance Method Summary

Instance methods inherited from class Algorithm

amount(prev_spin : Int32) : Int32 amount, balance : Int32 balance, balance_history : Array(Int32) balance_history, bet_history : Array(Array(Bet)) bet_history, bets(prev_spin : Int32) : Array(Bet) bets, deposit(balance : Int32) deposit, name : String name, random_color : BetColor::Color random_color, result_balance : Int32 result_balance, set_result(total : Int32, number : Int32, bets : Array(Bet)) set_result, start_balance : Int32 start_balance, win?(prev_spin : Int32) : Bool
win? : Bool
win?
, win_amount : Int32 win_amount

Instance Method Detail

def bet_amount(prev_spin : Int32) : Int32 #

[View source]
def bets(prev_spin : Int32) : Array(Bet) #

[View source]