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

hitotsuOpeningColourfunction

The colour an all-wild hand opens on, from the seed: there is no coloured card to start it.

Import it

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

Definition

function hitotsuOpeningColour(seed: number, hand: number): HitotsuColour

Parameters

NameTypeDescription
seednumber

The game's seed.

handnumber

Which hand of the game it is.

Returns

HitotsuColour

The colour the first card is taken to be.

Examples

import { hitotsuOpeningColour } from "@johnmorrisdotca/hitotsu";
console.log(hitotsuOpeningColour(42, 0));
Y

What it prints (run when this page was built)

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