dealOffunction
A deal string from card numbers.
Import it
import { dealOf } from "@johnmorrisdotca/toranpu/klondike";
Definition
function dealOf(deck: readonly number[]): string
Parameters
| Name | Type | Description |
|---|---|---|
deck | readonly number[] | The deck in its current order; the input is left unchanged. |
Returns
string
A deal string from card numbers.
Examples
import { dealOf, dealOfSeed, deckOf } from "@johnmorrisdotca/toranpu/klondike";
console.log(dealOf(deckOf(dealOfSeed(42))!));pvOZziGxjrXCNQoybFwJnDstTEelhRBaPAVuSHLdkKUmcMYIgqWfWhat it prints (run when this page was built)