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

identicalfunction

Whether two cards are the same card to play (the two red fives are).

Import it

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

Definition

function identical(a: HitotsuCard, b: HitotsuCard): boolean

Parameters

NameTypeDescription
astring

The first physical card.

bstring

The second physical card.

Returns

boolean

Whether two cards are the same card to play (the two red fives are).

Examples

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

console.log(identical("R50", "R51"));
true

What it prints (run when this page was built)

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