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

Registration alias

import { … } from "@johnmorrisdotca/hitotsu/element-define";

42.7 kB minified and gzipped, with everything it imports (measured with esbuild)

<hitotsu-table>, registered by being imported:

<script type="module" src="…/dist/element-define.js"></script>

<hitotsu-table rules="party" computers="3"></hitotsu-table>

The one module of the package that does something when it is imported, and package.json says so, so that a bundler keeps it. ./element exports the same class and defineHitotsuTable() with no effect of its own, for a page that wants to choose when.

Exports

NameKindWhat it is
defineHitotsuTablefunctionRegister a default or custom-tag native table; safe on servers and idempotent.
defineTablefunctionStandard table registration helper.
HITOTSU_EMBED_OPTION_KEYSconstantNative option keys checked by the builder.
HitotsuElementOptionstypeHost-only settings, including custom house rules and private names.
HitotsuTableElementclassA native playable colour-card table with reflected settings.

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