goFishMemoryfunction
What the table's log says about every seat's hand, worked out from the asks, the answers and the books.
Import it
import { goFishMemory } from "@johnmorrisdotca/toranpu/go-fish";
Definition
function goFishMemory(log: readonly GoFishEvent[], seats: number): GoFishMemory
Parameters
| Name | Type | Description |
|---|---|---|
log | readonly GoFishEvent[] | The recorded moves to replay or format. |
seats | number | The seat count or seat state supplied by this API. |
Returns
GoFishMemory
What the table's log says about every seat's hand, worked out from the asks, the answers and the books.
Examples
import { goFishMemory } from "@johnmorrisdotca/toranpu/go-fish";
console.log(goFishMemory([], 4));{
holds: [ Set(0) {}, Set(0) {}, Set(0) {}, Set(0) {} ],
lacks: [ Set(0) {}, Set(0) {}, Set(0) {}, Set(0) {} ]
}What it prints (run when this page was built)