knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(slotR)
slotR is a Slot machine game of chance implemented in R and Shiny.
You can install the released version of slotR from GitHub with:
remotes::install_github("mdt-ds/slotR")
You can start playing with the following commands:
library(slotR) run_app()
slotR is a simple slot machine game of chance inspired by R:
make your bet and spin the reels!
R symbols make you win, Python ones make you loose,
two or three equal hexagons make you win,
NAs hexagons are bad,
you can bet all of your money but no less than 100 credits,
payout is computed multiplying the bet by a factor resulting from adding the values reported on the payout table (see payout tab) depending on which and how many symbols appear in the reels,
if you run out of money you can ask for credit but no more than twice,
you win if you reach a credit of 30,000.
The tab panel config allows to customize the reels (slotR has 3 equal reels) inserting how many stops by selecting the sliders in the sidebar panel.
At every change in the stops quantity the probabilities are recomputed and displayed in the main panel.
The customized reels can be used in actual play only after clicking the change reel button.
The configured reel button shows the current reel configuration.
the tab panel analysis allows to review the current game both:
visualizing the trend of credit along the game rounds in the credit trend tab,
displaying every round outcome (resulting credit, bet done, symbols in each reel) in the game data tab.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.