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

React components

import { … } from "@johnmorrisdotca/hitotsu/react";

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

Exports

NameKindWhat it is
HitotsuCardDrawingfunctionOne card's drawing, to go inside any SVG whose box is 100 by 140: a face, or the back for null.
HitotsuCardImagefunctionA card as a whole SVG, sized by its parent or its own width: <HitotsuCardImage card="R70" width={80} />.
HitotsuTablefunctionA whole table, you against computers, as a React component: <HitotsuTable rules={HITOTSU_PARTY} players={["You", "Aki", "Ben"]} />.
HitotsuTablePropstypeNative table settings and div attributes for the React component, with an optional onReady callback.

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