ImportenceOfTheSnakes {SnakesAndLaddersAnalysis} | R Documentation |
Finds the Importence of the Snakes during the game of Snakes and Ladders
Description
This function uses the SnakesAndLaddersGame function to estimate which snakes are the most powerful dependent on the number of players by looking at which snakes the losers of each game lands on.
Usage
ImportenceOfTheSnakes(number.of.players = 2)
Arguments
number.of.players |
A single numeric value that represents the number of players you wish to run the trial with. |
Details
Function uses the SnakesAndLaddersGame function to find and display the snakes used by the losers. As the number of players increase we see a steady state forming of the same snakes. This results in us working out which snakes are key to avoid if you want to win.
Value
most.powerful.snakes |
A data frame which shows an estimation of the most powerful snakes. The higher the frequency the more powerful the snake. |
Warning
I have not put a limit on the amount of time that this function will run. This is to allow as many players as you want.
Author(s)
Hector Haffenden haffendenh@cardiff.ac.uk
Examples
ImportenceOfTheSnakes(1)
ImportenceOfTheSnakes(100)
ImportenceOfTheSnakes(1000)