Changelog
Source:NEWS.md
cards 0.3.8
- Enabled pkgdown light switch
cards 0.3.0
Added
eval_hand_phe()
: Evaluate the rank category of a five card poker hand using PH Evaluator’s five card C/C++ implementation using Rcpp.Added benchmarks of PH Evaluator C/C++ implementation using
eval_hand_phe()
cards 0.2.2
- Added benchmarks of
phevaluator
usingreticulate::import()
to Benchmarks vignette
cards 0.2.0
CRAN release: 2024-07-20
Moved benchmark tests to new “Benchmarks” vignette
Renamed functions from first implementation to
new_deck_df()
,deal_hand_df()
,print_hand_df()
,eval_hand_df()
Use “T” for ten instead of “10”
Add second implementation using
integer()
:new_deck()
,deal_hand()
,print_hand()
,eval_hand()
Updated Benchmarks vignette and added comparisons between implementations
cards 0.1.1
- Added notebook to test performance using
bench::mark()
cards 0.1.0
CRAN release: 2024-02-26
Initial release. Includes basic functions for poker simulation:
new_deck()
: returns a deck of 52 cards as adata.frame
deal_hand()
: selects 5 random cards from a deckprint_hand()
: return a character vector of sorted cards, collapsed by defaulteval_hand()
: evaluate the hand rank category of a five card hand