MostCommonSquare {SnakesAndLaddersAnalysis}R Documentation

Finds the Most Common Square during the Game of Snakes and Ladders

Description

This function uses the SnakesAndLaddersGame function to estimate the most common square in a game of snakes and ladders.

Usage

MostCommonSquare(number.of.players = 2, number.of.trials = 500)

Arguments

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.

Details

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.

Value

most.common.square

A print out of the most common squares landed on in a given number of trials.

Warning

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.

Author(s)

Hector Haffenden haffendenh@cardiff.ac.uk

Examples

MostCommonSquare(1)

MostCommonSquare(100, 10)

[Package SnakesAndLaddersAnalysis version 2.1.0 Index]