knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
devtools::load_all(".")

fivecarddraw

For simulating five-card draw poker scenarios

Installation

You can install the released version of fivecarddraw from Github

remotes::install_github("mkearney/fivecarddraw")

Example

Start a round of five-card draw

## start a game with five players
p <- Poker$new(players = 5)

## shuffle
p$shuffle()

## deal
p$deal()

## show cards
p$peek()

## draw cards
p$draw()

## show hands
p$show()

NOTE:

This package was inspired by a question about five-card draw from my father-in-law. It isn't scientific and it's a work in progress.



mkearney/fivecarddraw documentation built on Nov. 4, 2019, 6:59 p.m.