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_DECKconstant

Every card, in the deck's own order.

Import it

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

Definition

const HITOTSU_DECK: readonly string[] = [
    ...HITOTSU_COLOURS.flatMap((colour) => [`${colour}00`, ...FACES_TWICE.flatMap((face) => [`${colour}${face}0`, `${colour}${face}1`])]),
    ...[0, 1, 2, 3].flatMap((copy) => [`W${WILD}${copy}`, `W${WILD_FOUR}${copy}`]),
]

Examples

import { HITOTSU_DECK } from "@johnmorrisdotca/hitotsu";
console.log(HITOTSU_DECK.slice(0, 8));
[
  'R00', 'R10',
  'R11', 'R20',
  'R21', 'R30',
  'R31', 'R40'
]

What it prints (run when this page was built)

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