The goal of aaa
is to simulate one or many dice rolling battles from
the Axis and Allies board
game.
You can install the development version of aaa
from
GitHub with:
# install.packages("remotes")
remotes::install_github("kiernann/aaa")
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.