CrazyEightsResulttype
How a hand ended: who won it, and the points each winner took.
Import it
import type { CrazyEightsResult } from "@johnmorrisdotca/toranpu/crazy-eights";
Definition
type CrazyEightsResult = {
winners: number[];
points: number;
blocked: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
winners | number[] | |
points | number | |
blocked | boolean |
Examples
import type { CrazyEightsResult } from "@johnmorrisdotca/toranpu/crazy-eights";
const value: CrazyEightsResult = { winners: [0], points: 40, blocked: false };
console.log(value.winners);[ 0 ]What it prints (run when this page was built)