CRAN/E | mmcards

mmcards

Playing Cards Utility Functions

Installation

About

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.

github.com/mightymetrika/mmcards
Bug report File report

Key Metrics

Version 0.1.1
R ≥ 2.10
Published 2023-09-06 370 days ago
Needs compilation? no
License MIT
License File
CRAN checks mmcards results

Downloads

Yesterday 8 0%
Last 7 days 40 +43%
Last 30 days 159 -19%
Last 90 days 504 +7%
Last 365 days 2.095 +3853%

Maintainer

Maintainer

Mackson Ncube

Authors

Mackson Ncube

aut / cre

mightymetrika
LLC

cph / fnd

Material

README
Reference manual
Package source

Vignettes

alternative-decks

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-develnot available

x86_64

r-releasenot available

x86_64

r-oldrelnot available

x86_64

Depends

R ≥ 2.10

Suggests

knitr
rmarkdown
testthat ≥ 3.0.0