roll_probabilities: Runs the simulation for a a range of die sizes

Description Usage Arguments Value Examples

Description

The function was just an additional little experiment I wanted to try, and is not part of the core functions of the package. roll_probabilities creates a new transition matrix, runs the markov chain simulation, and produces a new probability distribution for each die size in the range. The maximum value of the output of finish_game_chance is recorded in the vector optimizedroll. This produces an interesting graph structure when plotted versus the die size.

Usage

1
roll_probabilities(maxroll = 100)

Arguments

maxroll

The maximum dize. Essentially, the number of iterations of this function.

Value

A plot of the die size versus the max values of the vector returned by finish_game_chance after each simulation.

Examples

1
roll_probabilities(maxroll = 100)

iawindham/snakesandladders documentation built on May 20, 2019, 2:08 p.m.