Reference · Game engine and table
identicalfunction
Whether two cards are the same card to play (the two red fives are).
Import it
import { identical } from "@johnmorrisdotca/hitotsu";
Definition
function identical(a: HitotsuCard, b: HitotsuCard): boolean
Parameters
| Name | Type | Description |
|---|---|---|
a | string | The first physical card. |
b | string | The second physical card. |
Returns
boolean
Whether two cards are the same card to play (the two red fives are).
Examples
import { identical } from "@johnmorrisdotca/hitotsu";
console.log(identical("R50", "R51"));trueWhat it prints (run when this page was built)