Description Usage Arguments Details Value Examples
For every land unit attacking, use roll_dice()
to calculate the number
of "hits" on defending units. Each attacking unit makes a successful hit on
different roll results (see details). This function is passed to hits()
and used in land_battle()
.
1 | attack(units = land_units())
|
units |
A list created by |
Infantry: 1 or 2 (see below)
Artillery: 2 or lower
Tanks: 3 or lower
Fighters: 3 or lower
Bombers: 4 or lower
For each artillery unit present, one attacking infantry unit makes successful hits on rolls of 2 or lower rather than just 1.
A list of logical vectors with hit results for each unit attacking.
1 | land_units(i = 6, a = 2, t = 1) %>% attack()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.