Learn R Programming

⚠️There's a newer version (2.0.3) of this package.Take me there.

CamelUp

The goal of camelUp is to implement the board game CamelUp and include simulations to assist instruction in introductory statistics courses.

Installation

You can install the released version of camelUp from CRAN with:

install.packages("camelUp")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("mczekanski1/Camel-Up/camelUp")

Example

The main function of this package is to allow the user to run this game locally. We have exported all of the objects in case the user would like to make use of them, but the main focus is on playing the game.

library(CamelUp)
#playCamelUp()

This will start a local shiny app with some of the functionality shown below:

Copy Link

Version

Install

install.packages('CamelUp')

Monthly Downloads

262

Version

0.1.0

License

GPL-3

Maintainer

Michael Czekanski

Last Published

September 27th, 2019

Functions in CamelUp (0.1.0)

system

System class that manages overall game play
stack

Implements a classic stack with push, pop and a few other methods
space

Implements spaces on the board
generateUI

Generate CamelUp UI
server

Define server logic for CamelUp game
board

A board object on which the game is played
camel

Implements camel class based off of the board game pieces
die

A three sided die, assigned a color corresponding to a camel
player

Player object to represent each player using bets and a purse
playCamelUp

Play the game CamelUp
bet

A bet object that is placed for a leg on a given camel
overall.bet

A bet object that is placed overall on a given camel
cleanColors

Correctly orders colors for graphing