abstract class Algorithm

Direct Known Subclasses

Defined in:

roulette/algorithm.cr

Constant Summary

ALL = [AllRed, Martingale, Pare, TenPercent, DAlembert, AntiDAlembert, Cocomo, MonteCarlo]

Instance Method Summary

Instance Method Detail

def amount(prev_spin : Int32) : Int32 #

[View source]
def balance : Int32 #

[View source]
def balance_history : Array(Int32) #

[View source]
def bet_history : Array(Array(Bet)) #

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

[View source]
def deposit(balance : Int32) #

[View source]
def name : String #

[View source]
def random_color : BetColor::Color #

[View source]
def result_balance : Int32 #

[View source]
def set_result(total : Int32, number : Int32, bets : Array(Bet)) #

[View source]
def start_balance : Int32 #

[View source]
def win?(prev_spin : Int32) : Bool #

[View source]
def win? : Bool #

[View source]
def win_amount : Int32 #

[View source]