GoFishMemorytype
What the table has said about each seat's hand: for each seat, the ranks it is known to hold and known to be without.
Import it
import type { GoFishMemory } from "@johnmorrisdotca/toranpu/go-fish";
Definition
type GoFishMemory = {
holds: Set<CardRank>[];
lacks: Set<CardRank>[];
};
Members
| Name | Type | Description |
|---|---|---|
holds | Set<Rank>[] | |
lacks | Set<Rank>[] |
Examples
import type { GoFishMemory } from "@johnmorrisdotca/toranpu/go-fish";
import { goFishMemory } from "@johnmorrisdotca/toranpu/go-fish";
const value: GoFishMemory = goFishMemory([], 4);
console.log(value.holds.length);4What it prints (run when this page was built)