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

mixSeedfunction

Two numbers mixed into one seed, so each hand of a game is shuffled from its own.

Import it

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

Definition

function mixSeed(seed: number, salt: number): number

Parameters

NameTypeDescription
seednumber

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

saltnumber

The extra integer mixed with the seed for this reshuffle.

Returns

number

Two numbers mixed into one seed, so each hand of a game is shuffled from its own.

Examples

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

console.log(mixSeed(42, 2));
2743639371

What it prints (run when this page was built)

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