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
| Name | Type | Description |
|---|---|---|
game | HitotsuGame | 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)