Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Go Fish

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

NameTypeDescription
logreadonly GoFishEvent[]

The recorded moves to replay or format.

seatsnumber

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.