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
| Name | Type | Description |
|---|---|---|
embedError | string | Shown when a local embed cannot mount with its settings. |
you | string | |
computer | (n: number) => string | |
yourTurn | string | |
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 | |
draw | string | |
keep | string | |
take | (count: number) => string | |
challenge | string | |
call | string | |
called | string | |
pickColour | string | |
swapWith | (who: string) => string | |
jumpIn | string | |
won | (who: string) => string | |
again | string | |
stock | (count: number) => string | |
inPlay | string | The label under the card in play, matching the one under the draw pile so the two sit level. "In play" when left out. |
colour | Record<"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);YouWhat it prints (run when this page was built)