Learn R Programming

wildpoker (version 1.1)

wildpoker-package: \Sexpr[results=rd,stage=build]{tools:::Rd_package_title("#1")}wildpokerBest Hand Analysis for Poker Variants Including Wildcards

Description

\Sexpr[results=rd,stage=build]{tools:::Rd_package_description("#1")}wildpokerProvides insight into how the best hand for a poker game changes based on the game dealt, players who stay in until the showdown and wildcards added to the base game. At this time the package does not support player tactics, so draw poker variants are not included.

This package is provides insight into how the best hand for a poker game changes based on the following variables:

  • Game Variant (which may include rules to split pot, wildcards that emerge in play, various dealing options)
  • Player Number (a good hand changes significantly as more players are added to the game)
  • Wildcards Added (additional wildcards incorporated beyond the basic game variant)

All hands are dealt completely and all players are assumed to stay in. Therefore the package makes no assumptions about betting strategy and largely because of this fact, poker variants involving drawing, discarding, passing or bidding on cards are not included at this time.

Arguments

Details

The DESCRIPTION file: \Sexpr[results=rd,stage=build]{tools:::Rd_package_DESCRIPTION("#1")}wildpokerThis package was not yet installed at build time.

\Sexpr[results=rd,stage=build]{tools:::Rd_package_indices("#1")}wildpoker Index: This package was not yet installed at build time.

This package is organized into three specfic functions and two data elements

  • wpgame - Play a poker variant, see who won, game-level stats
  • wprules - Display rules of a poker variant
  • wpstats - Deal many games of a poker variant, capture statistics
  • wpgraphs - Plot data from wpstats output into useful graphs
  • wpsupportedgames - lists all supported games & basic description of each
  • wpnotsupported - lists unsupported games & reason they are not yet included

For most purposes calling wpgraphs is sufficient - results have been precalculated for each supported game with from zero to 8 additional wildcards and from 2 to 8 players (or less, if a 52 card deck can not deal 8 hands), using 1000 hands dealt and a random number seed of 52.

References

Shanrock-Solberg, B (2015) Monte Carlo Methods for Decision Support (or Winning More at Dealer's Choice Poker)