Reference · Game engine and table
HitotsuResulttype
How a hand ended: who won it and what they scored, or who held least when nobody could go on.
Import it
import type { HitotsuResult } from "@johnmorrisdotca/hitotsu";
Definition
type HitotsuResult = {
winners: number[];
points: number;
blocked: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
winners | number[] | |
points | number | |
blocked | boolean |
Examples
import type { HitotsuResult } from "@johnmorrisdotca/hitotsu";
const value: HitotsuResult = { winners: [0], points: 40, blocked: false };
console.log(value.points);40What it prints (run when this page was built)