Reference · Game engine and table
hitotsuOpeningColourfunction
The colour an all-wild hand opens on, from the seed: there is no coloured card to start it.
Import it
import { hitotsuOpeningColour } from "@johnmorrisdotca/hitotsu";
Definition
function hitotsuOpeningColour(seed: number, hand: number): HitotsuColour
Parameters
| Name | Type | Description |
|---|---|---|
seed | number | The game's seed. |
hand | number | Which hand of the game it is. |
Returns
HitotsuColour
The colour the first card is taken to be.
Examples
import { hitotsuOpeningColour } from "@johnmorrisdotca/hitotsu";
console.log(hitotsuOpeningColour(42, 0));YWhat it prints (run when this page was built)