Poker {casino}R Documentation

Poker R6 Class

Description

Poker R6 Class

Usage

Poker

Format

An object of class R6ClassGenerator of length 24.

Examples

set.seed(101315)
setup()

# draw poker
x <- Poker$new(who = "Player 1", type = "draw", bet = 10)
x$play()
x$hold(1, 2, 5)
x$draw()

# stud poker (bet 20)
x <- Poker$new(who = "Player 1", type = "stud", bet = 20)
x$play()

# clean-up
delete()

[Package casino version 0.1.0 Index]