Description Usage Arguments Details Value Warning Author(s) Examples
This function uses the SnakesAndLaddersGame function to estimate the most common square in a game of snakes and ladders.
1 | MostCommonSquare(number.of.players = 2, number.of.trials = 500)
|
number.of.players |
A single numeric value that represents the number of players you wish to run the trial with. |
number.of.trials |
A single numeric value tha represents the number of trials you wish to run. |
Function uses the SnakesAndLaddersGame function to find and display the most common square. The more trials the more accurate the estimate. There may be more than one if the trials are low enough.
most.common.square |
A print out of the most common squares landed on in a given number of trials. |
I have not put a limit on the amount of time that this function will run. This is to allow as many players and trials as you want.
Hector Haffenden haffendenh@cardiff.ac.uk
1 2 3 | MostCommonSquare(1)
MostCommonSquare(100, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.