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

hitotsuLanguageOffunction

The language a language tag such as "ja", "ja-JP" or "en-GB" asks for: Japanese for any ja, English for everything else, and for nothing.

Import it

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

Definition

function hitotsuLanguageOf(tag: string | null | undefined): HitotsuLanguage

Parameters

NameTypeDescription
tagstring | null | undefined

The language tag to interpret.

Returns

HitotsuLanguage

The language a language tag such as "ja", "ja-JP" or "en-GB" asks for: Japanese for any ja, English for everything else, and for nothing.

Examples

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

console.log(hitotsuLanguageOf("ja-JP"));
ja

What it prints (run when this page was built)

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