PlotMyGame: Plots the game of Snakes and Ladders

Description Usage Arguments Details Value Author(s) Examples

View source: R/PlotMyGame.R

Description

This function plots the result from the SnakesAndLaddersGame Function.

Usage

1
PlotMyGame(output.from.SnakesAndLaddersGame.function, legend = TRUE)

Arguments

output.from.SnakesAndLaddersGame.function

The output from the SnakesAndLaddersGame function.

legend

Takes value TRUE or FALSE, if TRUE, displays the legend for the plot.

Details

Function that takes output from the SnakesAndLaddersGame function and plots it with an appropriate legend and nice colours to represent each players game. Only accepts number of players between 1 and 7.

Value

A plot

Plots the players position on each roll.

Author(s)

Hector Haffenden haffendenh@cardiff.ac.uk

Examples

1
2
3
4
5

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