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

HitotsuColourtype

A card's colour: red, yellow, green or blue. A wild card has none until it is played and one is called.

Import it

import type { HitotsuColour } from "@johnmorrisdotca/hitotsu";

Definition

type HitotsuColour = "R" | "Y" | "G" | "B";

Examples

import type { HitotsuColour } from "@johnmorrisdotca/hitotsu";


const value: HitotsuColour = "R";
console.log(value);
R

What it prints (run when this page was built)

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