Description Usage Arguments Details Examples
Play variations of the well-known dice rolling game in an R session.
1 2 |
variation |
Character value. Name of game variation and ruleset to apply. Valid options are:
|
rolls_per_turn |
Integer value. The number of dice rolls allowed per turn. Usually (and by default) 3, but can be changed to any other value to create your own bespoke game variation. |
work.mode |
Logical. If TRUE, then display the game in a manner which looks a bit more like you're actually working! N.B. I accept no responsibility if your boss still notices! |
graphical |
Logical, TRUE by default. If set, and ggplot2 is installed, the game also plots your scorecard as a ggplot. Will vary the outputs, both to entertain you, and to make it look like you're developing some interesting charts (useful in work mode?). |
Yatzy (and variants) are a classic dice rolling game and, heck, why not play then in an R console instead of doing some important machine learning or whatever.
Work mode prints minimal help messages and prompting, but accepts exactly the same inputs as regular mode. It assumes that you have already played in regular (verbose) mode and therefore understand what inputs are available at the various prompts.
Type "help" or "?" at any prompt for more information.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.