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

hitotsuShapeSvgfunction

One shape as SVG markup.

Import it

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

Definition

function hitotsuShapeSvg(shape: HitotsuShape): string

Parameters

NameTypeDescription
shapeHitotsuShape

One of the native card drawing shapes.

Returns

string

One shape as SVG markup.

Examples

import { hitotsuCardShapes, hitotsuShapeSvg } from "@johnmorrisdotca/hitotsu";

console.log(hitotsuShapeSvg(hitotsuCardShapes("R70")[0]!));
<rect x="0" y="0" width="100" height="140" rx="9" fill="#fffdf6"/>

What it prints (run when this page was built)

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