Reference · Rules, tiles and records
PartySettingstype
What a pass-and-play game was set up as: the address's own choices, which a kept game is matched to.
Import it
import type { PartySettings } from "@johnmorrisdotca/kumimoji";
Definition
type PartySettings = {
size: number;
level: KumimojiLevel;
seed: number;
gameLength: KumimojiLength;
language: KumimojiLanguage;
doubleSet: boolean;
diagonals: boolean;
hints: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
size | number | The hand each player is dealt: 7 Quick or 11 Classic (3 in the browser tests alone). |
level | KumimojiLevel | |
seed | number | The seed the bag was made from; the bag itself is kept too, so a kept game never depends on the generator. |
gameLength | KumimojiLength | |
language | KumimojiLanguage | |
doubleSet | boolean | |
diagonals | boolean | Whether Diagonals was chosen: every table in the game is read along its diagonals too ( |
hints | boolean | Whether Help was chosen on the set-up screen. |
Examples
import type { PartySettings } from "@johnmorrisdotca/kumimoji";
const settings = {size:3,level:"hard",seed:44,gameLength:"short",language:"english",doubleSet:false,diagonals:false,hints:false} as const;
const value: PartySettings = settings;
console.log(value);{
size: 3,
level: 'hard',
seed: 44,
gameLength: 'short',
language: 'english',
doubleSet: false,
diagonals: false,
hints: false
}What it prints (run when this page was built)