README.md

aaa

Lifecycle:
experimental CRAN
status Travis build
status Codecov test
coverage

The goal of aaa is to simulate one or many dice rolling battles from the Axis and Allies board game.

Installation

You can install the development version of aaa from GitHub with:

# install.packages("remotes")
remotes::install_github("kiernann/aaa")

Usage

Lists of units are created using land_units() and sea_units(), which can then be told to attack() or defend(), producing a new list of rolling results witch can be automatically compared and iterated with battle().

library(aaa)
land_units(i = 6, a = 2) %>% attack()
#> $inf
#> [1]  TRUE FALSE FALSE  TRUE FALSE  TRUE
#> 
#> $art
#> [1] FALSE FALSE

Please note that the aaa project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.



kiernann/aaa documentation built on Feb. 10, 2020, 1:23 a.m.