Skip to content

An R package for simulating, visualizing, and generating sets of non-transitive dice

License

Notifications You must be signed in to change notification settings

andreyrisukhin/ntdice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntdice

R-CMD-check codecov

The goal of ntdice is to simulate, visualize, and generate sets of non-transitive dice.

Grime Dice

One impressive set of non-transitive dice was discovered by Dr. James Grime. This set has several cycles:

  • Alphabetical: blue, magenta, olive, red, yellow
  • Length (increasing): red, blue, olive, yellow, magenta
  • Reverse Length (decreasing): magenta, yellow, olive, blue, red

Each of the dice in this set has six faces.

We can simulate rolls between two dice using the simulate_roll(dice_a, dice_b, trials) function.

Installation

You can install the released version of ntdice from CRAN with:

install.packages("ntdice")

To view vignettes, run the following code:

devtools::install_github("andreyrisukhin/ntdice", build_vignette = TRUE, build_opts = c())
library(ntdice)
# Use this to view the vignette in the ntdice HTML help
help(package = "ntdice", help_type = "html")
# Use this to view the vignette as an isolated HTML file
utils::browseVignettes(package = "ntdice")

Examples

Examples of functionality coming soon!

Coming Soon

Features coming soon include:

  • Plotting simulation results, visualizations
  • Intelligent dice selection
  • Generating new sets of Non-Transitive Dice
  • More famous sets of Non-Transitive Dice (efron dice)
  • More uses for get_win_matrix()

About

An R package for simulating, visualizing, and generating sets of non-transitive dice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages