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

reshuffledHitotsufunction

These cards shuffled again, the same way for the same seed and salt: a pile turned over to make a new stock.

Import it

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

Definition

function reshuffledHitotsu(cards: readonly HitotsuCard[], seed: number, salt: number): HitotsuCard[]

Parameters

NameTypeDescription
cardsreadonly string[]

The cards to reshuffle, in their current order.

seednumber

The numeric seed that reproduces the same random sequence or deal.

saltnumber

The extra integer mixed with the seed for this reshuffle.

Returns

string[]

These cards shuffled again, the same way for the same seed and salt: a pile turned over to make a new stock.

Examples

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

console.log(reshuffledHitotsu(["R70", "B20", "WW0"], 42, 1));
[ 'R70', 'B20', 'WW0' ]

What it prints (run when this page was built)

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