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_COLOUR_LOOKconstant

Each colour's fill, the ink written on it, its element and its name; W is the wilds' and the back's.

Import it

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

Definition

const HITOTSU_COLOUR_LOOK: Record<HitotsuColour | "W", { fill: string; ink: string; element: string; name: string; }> = {
    R: { fill: "#c8372d", ink: "#ffffff", element: "火", name: "Red" },
    Y: { fill: "#dfa11b", ink: "#1f1a12", element: "土", name: "Yellow" },
    G: { fill: "#2f8a4f", ink: "#ffffff", element: "木", name: "Green" },
    B: { fill: "#2a5ea8", ink: "#ffffff", element: "水", name: "Blue" },
    W: { fill: "#24201d", ink: "#ffffff", element: "五", name: "Wild" },
}

Members

NameTypeDescription
R{ fill: string; ink: string; element: string; name: string; }
Y{ fill: string; ink: string; element: string; name: string; }
G{ fill: string; ink: string; element: string; name: string; }
B{ fill: string; ink: string; element: string; name: string; }
W{ fill: string; ink: string; element: string; name: string; }

Examples

import { HITOTSU_COLOUR_LOOK } from "@johnmorrisdotca/hitotsu";
console.log(HITOTSU_COLOUR_LOOK.R.element);
火

What it prints (run when this page was built)

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