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

hitotsuJumpInsfunction

JUMPING IN: with the option on, any other player holding a card identical to the one on top — same colour, same face, never a wild — may play it out of turn, and play goes on from them. Not on a draw waiting to be taken, a challenge waiting to be made, or while the player to move decides about a card they drew.

Import it

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

Definition

function hitotsuJumpIns(game: HitotsuGame): HitotsuMove[]

Parameters

NameTypeDescription
gameHitotsuGame

The current native game; it is left unchanged.

Returns

HitotsuMove[]

JUMPING IN: with the option on, any other player holding a card identical to the one on top — same colour, same face, never a wild — may play it out of turn, and play goes on from them. Not on a draw waiting to be taken, a challenge waiting to be made, or while the player to move decides about a card they drew.

Examples

import { HITOTSU_CLASSIC, hitotsuJumpIns, startHitotsu } from "@johnmorrisdotca/hitotsu";

const game = startHitotsu(1, ["Aki", "Ben"], 42, HITOTSU_CLASSIC, [true, true])!;
console.log(hitotsuJumpIns(game));
[]

What it prints (run when this page was built)

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