Reference · Game engine and table
isDrawCardfunction
Whether a card makes somebody draw: a Draw Two or a Wild Draw Four.
Import it
import { isDrawCard } from "@johnmorrisdotca/hitotsu";
Definition
function isDrawCard(card: HitotsuCard): boolean
Parameters
| Name | Type | Description |
|---|---|---|
card | string | The physical card id; null draws the back where supported. |
Returns
boolean
Whether a card makes somebody draw: a Draw Two or a Wild Draw Four.
Examples
import { isDrawCard } from "@johnmorrisdotca/hitotsu";
console.log(isDrawCard("RD0"));trueWhat it prints (run when this page was built)