writeCardsfunction
A run of cards as a string, one character each.
Import it
import { writeCards } from "@johnmorrisdotca/toranpu/deck";
Definition
function writeCards(cards: readonly Card[]): string
Parameters
| Name | Type | Description |
|---|---|---|
cards | readonly Card[] | The cards in their current order. |
Returns
string
A run of cards as a string, one character each.
Examples
import { freshDeck, writeCards } from "@johnmorrisdotca/toranpu/deck";
console.log(writeCards(freshDeck().slice(0, 5)));ABCDEWhat it prints (run when this page was built)