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

HitotsuCardMovetype

A move that puts a card down: in turn, or jumping in.

Import it

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

Definition

type HitotsuCardMove = Extract<HitotsuMove, {
    play: HitotsuCard;
}> | Extract<HitotsuMove, {
    jump: HitotsuCard;
}>;

Examples

import type { HitotsuCardMove } from "@johnmorrisdotca/hitotsu";
import { cardOfMove } from "@johnmorrisdotca/hitotsu";

const value: HitotsuCardMove = { play: "R70", call: true };
console.log(cardOfMove(value));
R70

What it prints (run when this page was built)

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