Reference · Rolls and exact odds
DICE_WAR_LIMITSconstant
What a table may be set up with.
Import it
import { DICE_WAR_LIMITS } from "@johnmorrisdotca/korokoro";
Definition
const DICE_WAR_LIMITS: { readonly fewestPlayers: 2; readonly mostPlayers: 8; readonly mostDice: 10; readonly mostPoints: 100; readonly mostRounds: 200; readonly mostWars: 100; } = {
fewestPlayers: 2,
mostPlayers: 8,
mostDice: MAX_DICE,
mostPoints: 100,
mostRounds: 200,
mostWars: 100,
} as const
Members
| Name | Type | Description |
|---|---|---|
fewestPlayers | 2 | The fewest players. |
mostPlayers | 8 | The most players. |
mostDice | 10 | The most dice each player rolls. |
mostPoints | 100 | The most points a game may be played to. |
mostRounds | 200 | The most rounds a game may last. |
mostWars | 100 | The most wars one round may go through before it is called off with nobody scoring: with two or more sides to a die it is never reached in practice. |
Examples
import { DICE_WAR_LIMITS } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(DICE_WAR_LIMITS));[
'fewestPlayers',
'mostPlayers',
'mostDice',
'mostPoints',
'mostRounds',
'mostWars'
]What it prints (run when this page was built)