mmcards: Playing Cards Utility Functions

Early insights in probability theory were largely influenced by questions about gambling and games of chance, as noted by Blitzstein and Hwang (2019, ISBN:978-1138369917). In modern times, playing cards continue to serve as an effective teaching tool for probability, statistics, and even 'R' programming, as demonstrated by Grolemund (2014, ISBN:978-1449359010). The 'mmcards' package offers a collection of utility functions designed to aid in the creation, manipulation, and utilization of playing card decks in multiple formats. These include a standard 52-card deck, as well as alternative decks such as decks defined by custom anonymous functions and custom interleaved decks. Optimized for the development of educational 'shiny' applications, the package is particularly useful for teaching statistics and probability through card-based games. Functions include shuffle_deck(), which creates either a shuffled standard deck or a shuffled custom alternative deck; deal_card(), which takes a deck and returns a list object containing both the dealt card and the updated deck; and i_deck(), which adds image paths to card objects, further enriching the package's utility in the development of interactive 'shiny' application card games.

Version: 0.1.1
Depends: R (≥ 2.10)
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2023-09-06
DOI: 10.32614/CRAN.package.mmcards
Author: Mackson Ncube [aut, cre], mightymetrika, LLC [cph, fnd]
Maintainer: Mackson Ncube <macksonncube.stats at gmail.com>
BugReports: https://github.com/mightymetrika/mmcards/issues
License: MIT + file LICENSE
URL: https://github.com/mightymetrika/mmcards
NeedsCompilation: no
Materials: README
CRAN checks: mmcards results

Documentation:

Reference manual: mmcards.pdf
Vignettes: alternative-decks

Downloads:

Package source: mmcards_0.1.1.tar.gz
Windows binaries: r-devel: mmcards_0.1.1.zip, r-release: mmcards_0.1.1.zip, r-oldrel: mmcards_0.1.1.zip
macOS binaries: r-release (arm64): mmcards_0.1.1.tgz, r-oldrel (arm64): mmcards_0.1.1.tgz, r-release (x86_64): mmcards_0.1.1.tgz, r-oldrel (x86_64): mmcards_0.1.1.tgz

Reverse dependencies:

Reverse imports: bootwar, mmibain, mmiCATs, mmirestriktor, scdtb

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mmcards to link to this page.