Reference · Game engine and table
faceOffunction
A card's face: a digit, or S, R, D, W, F.
Import it
import { faceOf } from "@johnmorrisdotca/hitotsu";
Definition
function faceOf(card: HitotsuCard): string
Parameters
| Name | Type | Description |
|---|---|---|
card | string | The physical card id; null draws the back where supported. |
Returns
string
A card's face: a digit, or S, R, D, W, F.
Examples
import { faceOf } from "@johnmorrisdotca/hitotsu";
console.log(faceOf("R70"));7What it prints (run when this page was built)