The Oath attack (red) die.
The Oath defense (blue) die.
Compare 2 arrays using ===
. No deep comparaison.
The type of the elements contained in the arrays.
First array.
Second array.
True if a
and b
contains the same values in the same order.
Compare 2 campaign results with following rules:
The first campaign result.
The second campaign result.
1 if a > b, 0 if a = B and -1 if a < b
Computes the cartesian product of arrays of elements.
cartesianProduct([1, 2], [3, 4]) // [[1, 3], [1, 4], [2, 3], [2, 4]]
The sets to use for the cartesian product.
The cartesian product of all provided sets.
Combine two sets with odds into a single one. Sets are merged and odds are multiplied.
Type for the first set.
Type for the second set.
The first set to be combined.
The second set to be combined.
The result of combining the two sets.
Flattens an array of arrays.
The type of the elements contained in the arrays.
An array of arrays.
A flattened array.
Computes the greatest common divider of 2 integers.
First integer.
Second integer.
Greatest common divider of a
and b
.
Computes all possible sets from the provided list of random devices along with the odds of obtaining this particular set.
The list of random devices from which to generate possible sets.
All possible sets that can be obtainded from this lsit of random devices along with the odds of obtaining this particular set.
Computes the remaining warbands in attacking force by applying the kills from the dice roll and sacrificing the number of warbands needed to succeed. If the result is negative, it means by this campaign can't be a success (not enough warbands to sacrifice).
The campaign result.
The number of warbands in attacking force.
The number of warbands in defending force.
The remaining warbands or null if the campaign is a loss.
Returns a new array with element at index idx
replaced with elem
.
The type of the elements contained in the array.
The original array.
The index at which to replace.
The element to place at the specified index.
A new array with the element replaced.
Lists all possible results of an attack roll.
Number of attack (red) dice to roll.
All possible results of rolling this number of attack dice.
Lists all possible results of a campaign in Oath along with their odds.
Number of attack (red) dice to roll.
Number of defense (blue) dice to roll.
All possible results for this campaign along with their odds.
Lists all possible results of defense roll.
Number of defense (blue) dice to roll.
All possible results of rolling this number of defense dice.
Sums up a set of attack die faces into an attack roll result.
A set of attack die faces.
The attack roll result after adding all die faces.
Sums up a set of defense die faces into a defense roll result.
A set of defense die faces.
The defense roll result after adding all die faces.
Generated using TypeDoc
Type to hold a campaign result.