Slots: Slots R6 Class

Description Usage Format Examples

Description

Slots R6 Class

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
set.seed(101315)
setup()

# start the slot machine
x <- Slots$new(who = "Player 1", bet = 10)

# play 1 game
x$play()

# play >1 game at a time
x$play(spins = 3)

# clean-up
delete()

casino documentation built on May 2, 2019, 8:41 a.m.