Generate all possible die sequences
Usage
die_game_seq(
rolls,
sides = 6,
payoffs,
starting_capital = 100,
min_bet = 0,
max_payout = Inf,
betting_fraction = 1,
insurance_payoffs = c(0, 1),
use_insurance = FALSE,
insurance_cost = 0.1
)
Arguments
- rolls
Number of rolls
- sides
Number of sides
- payoffs
a list of the payoffs, one for each side of the die
- starting_capital
Initial amount of money
- min_bet
Minimum bet
- max_payout
Maximum payout
- betting_fraction
Fraction of funds to bet
- insurance_payoffs
a list of the payoffs for insurance, one for each side of the die
- use_insurance
Whether to use insurance
- insurance_cost
Cost of insurance
Examples
die_game_seq(2, 6, c(2, 0.5, 1, 1, 1, 1), 100, 1, 1000, 0.5)
#> $results
#> [1] 100 100 75
#>
#> $payout
#> [1] 75
#>
#> $toss_results
#> [1] 4 2
#>