Reference · Game engine and table
cardOfMovefunction
The card a card move puts down.
Import it
import { cardOfMove } from "@johnmorrisdotca/hitotsu";
Definition
function cardOfMove(move: HitotsuCardMove): HitotsuCard
Parameters
| Name | Type | Description |
|---|---|---|
move | HitotsuCardMove | The native move to apply, validate or inspect. |
Returns
string
The card a card move puts down.
Examples
import { cardOfMove } from "@johnmorrisdotca/hitotsu";
console.log(cardOfMove({ play: "R70", call: true }));R70What it prints (run when this page was built)