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

isNumberfunction

Whether a card is a number, 0 to 9.

Import it

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

Definition

function isNumber(card: HitotsuCard): boolean

Parameters

NameTypeDescription
cardstring

The physical card id; null draws the back where supported.

Returns

boolean

Whether a card is a number, 0 to 9.

Examples

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

console.log(isNumber("R70"));
true

What it prints (run when this page was built)

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