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

hitotsuLaunchfunction

How many cards the launcher fires, from the seed and how many moves have been made: the same for the same game, never the same twice in a row.

Import it

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

Definition

function hitotsuLaunch(seed: number, moves: number, least: number, most: number): number

Parameters

NameTypeDescription
seednumber

The game's seed.

movesnumber

How many moves the game has had.

leastnumber

The fewest cards.

mostnumber

The most cards.

Returns

number

A whole number from least to most.

Examples

import { hitotsuLaunch } from "@johnmorrisdotca/hitotsu";
console.log(hitotsuLaunch(42, 7, 1, 4));
4

What it prints (run when this page was built)

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