Blackjack R6 Class
Blackjack
An object of class R6ClassGenerator
of length 24.
#>#>#># sit at the blackjack table x <- Blackjack$new(who = "Player 1", bet = 10)#>#>#> Player Hand: {8, 2} = 10 #> Dealer Hand: {?, 6} = ? #> Will you `hit()` or `stand()`?x$hit()#> Player Hand: {8, 2, 8} = 18 #> Dealer Hand: {?, 6} = ? #> Will you `hit()` or `stand()`?x$stand()#> Game over! dealer wins #> You lost -10! #> Now you have 90 in your account.#>#> Player Hand: {6, K} = 16 #> Dealer Hand: {?, Q} = ? #> Will you `hit()` or `stand()`? #> Game over! dealer bust #> You won 10! #> Now you have 100 in your account.# clean-up delete()