Description Usage Details Value Examples
This prompts the user to specify all of the necessary parameters, and then runs through add_snakesandladders(), create_transmatrix(), markov_chain(), and finish_game_chance()
.
It then prints the most probable number of turns it will take to win the game, and a graph of the output of finish_game_chance()
versus the number of turns.
This function takes no arguments, and instead prompts the user for all the necessary parameters.
The default settings for the game can also be used.
1 |
Try experimenting with different parameter settings to see what you get.
A plot of the output of finishgamechance
versus the number of turns. This distribution shows how probable it is to win the game in x number of turns.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.