MostCommonSquare: Finds the Most Common Square during the Game of Snakes and...

Description Usage Arguments Details Value Warning Author(s) Examples

View source: R/MostCommonSquare.R

Description

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

Usage

1
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

1
2
3

hectorhaffenden/SnakesAndLaddersAnalysis documentation built on April 16, 2020, 7:24 a.m.