https://github.com/benyamindsmith/rslots
A slot machine simulator in R.
https://github.com/benyamindsmith/rslots
gaming r slots
Last synced: 2 months ago
JSON representation
A slot machine simulator in R.
- Host: GitHub
- URL: https://github.com/benyamindsmith/rslots
- Owner: benyamindsmith
- Created: 2024-08-06T15:45:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T16:19:46.000Z (almost 2 years ago)
- Last Synced: 2024-08-06T18:42:53.851Z (almost 2 years ago)
- Topics: gaming, r, slots
- Language: R
- Homepage: https://benyamindsmith.github.io/rslots/
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rslots
A slot machine simulator in R inspired by the example outlined in [Hands on R Programming](https://rstudio-education.github.io/hopr/project-3-slot-machine.html).
# Installing this package
```r
#install.packages("devtools")
devtools::install_github("benyamindsmith/rslots")
```
# Using this package
To play a game of slots, simply run:
```r
rslots::play()
```
To keep track of your balance assign it to a variable:
```r
# Example
x<- rslots::play()
```
# Similar packages
- [casino](https://github.com/anthonypileggi/casino) - available games include poker, blackjack and slots. Additionally its possible to [track preformance](https://github.com/anthonypileggi/casino?tab=readme-ov-file#its-closing-time)
- [Rcade](https://github.com/RLesur/Rcade)- play much more advanced HTML5 games in the R console.