Blackjack {casino} | R Documentation |
Blackjack R6 Class
Description
Blackjack R6 Class
Usage
Blackjack
Format
An object of class R6ClassGenerator
of length 24.
Examples
set.seed(101315)
setup()
# sit at the blackjack table
x <- Blackjack$new(who = "Player 1", bet = 10)
# play a hand
x$play()
x$hit()
x$stand()
# play a hand blind w/out drawing
x$play()$stand()
# clean-up
delete()
[Package casino version 0.1.0 Index]