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.1

License

GPL-3

Maintainer

Michael Czekanski

Last Published

October 2nd, 2019

Functions in CamelUp (0.1.1)

playCamelUp

Play the game CamelUp
stack

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

Implements spaces on the board
system

System class that manages overall game play
player

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

A board object on which the game is played
die

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

Generate CamelUp UI
cleanColors

Correctly orders colors for graphing
bet

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

Implements camel class based off of the board game pieces
server

Define server logic for CamelUp game
overall.bet

A bet object that is placed overall on a given camel