Description Usage Arguments Details Value Examples
Plays one battle following the rules for Axis and Allies 1942 second edition
1 2 3 4 5 6 7 | play_1942se_battle(
oolAttacker,
oolDefender,
retreat = NULL,
verbose = F,
suppressChecks = F
)
|
oolAttacker |
character() order of loss for attacker |
oolDefender |
character() order of loss for defender |
retreat |
integer() round number after which attacker should retreat, if NULL, round number will not trigger retreat |
verbose |
logical() whether to print battle information to stdout |
suppressChecks |
suppressChecks on input |
units for oolAttacker and oolDefender accepts all units specified in ool
In addition to the standard options, the attacker and defender OOL supports the directives:
Submarines submerge at first opportunity when all units preceeding this directive is lost.
In addition to the standard options, the attacker OOL supports the directives:
Attacker will retreat when all units preceeding this directive is lost.
list() with members
remaining units for attacker, formatted as oolAttacker
remaining units for defender, formatted as oolDefender
1 | play_1942se_battle(c("inf", "art", "ftr"), c("inf", "inf", "inf", "AA"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.