Description Usage Arguments Details Value
Simulate Axis and Allies Battles
1 2 3 4 5 6 7 8 | simulateBattles(
oolAttacker,
oolDefender,
FUN = play_LHTR_battle,
...,
iterations = 2000,
replications = 3
)
|
oolAttacker |
character() vector of unit codes in preferred order of loss, formatted as |
oolDefender |
character() vector of unit codes in preferred order of loss, formatted as |
FUN |
function for running one battle |
... |
additional arguments passed to FUN |
iterations |
number of iterations to simulate for each replication |
replications |
number of replicates to run |
The battle function 'FUN' implements the ruleset used.
FUN must accept the arguments 'oolAttacker' and 'oolDefender' and a logical argument suppressChecks,
it must return battleResults
simulationResults
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.