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