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

colourWordsfunction

A colour’s name in English or Japanese.

Import it

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

Definition

function colourWords(colour: HitotsuColour, language?: "en" | "ja"): string

Parameters

NameTypeDescription
colourHitotsuColour

The colour to name.

language (optional)"en" | "ja"

English or Japanese for the displayed words.

Returns

string

A colour’s name in English or Japanese.

Examples

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

console.log(colourWords("R", "ja"));
赤

What it prints (run when this page was built)

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