Skip to the content

Hitotsu一つ

Match the colour or number, call with one card left, and play classic or party rules against computers or at a shared table.

Hitotsu is Japanese for one: the call with one card left. About the name

Contents

Reference · Game engine and table

HITOTSU_STRINGSconstant

Native interface, settings and words for host code.

Import it

import { HITOTSU_STRINGS } from "@johnmorrisdotca/hitotsu";

Definition

const HITOTSU_STRINGS: Required<HitotsuStrings>

Members

NameTypeDescription
embedErrorstring

Shown when a local embed cannot mount with its settings.

youstring
computer(n: number) => string
yourTurnstring
toPlay(who: string) => string
follow(colour: string) => string
facing(who: string, count: number) => string
drew(who: string) => string
challengeOpen(who: string, by: string) => string
cards(count: number) => string
points(count: number) => string
drawstring
keepstring
take(count: number) => string
challengestring
callstring
calledstring
pickColourstring
swapWith(who: string) => string
jumpInstring
won(who: string) => string
againstring
stock(count: number) => string
inPlaystring

The label under the card in play, matching the one under the draw pile so the two sit level. "In play" when left out.

colourRecord<"R" | "Y" | "G" | "B", string>
news{ caught: (who: string) => string; took: (who: string, count: number) => string; challenge: (who: string, by: string, guilty: boolean) => string; swap: (who: string, other: string) => string; rotate: string; jump: (who: string) => string; skipped: (who: string, you: boolean) => string; reversed: string; drew: (who: string, count: number) => string; }

Examples

import { HITOTSU_STRINGS } from "@johnmorrisdotca/hitotsu";
console.log(HITOTSU_STRINGS.you);
You

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hitotsu 1.4.0.