foundationPileOffunction
The foundation a card goes to.
Import it
import { foundationPileOf } from "@johnmorrisdotca/toranpu/klondike";
Definition
function foundationPileOf(card: number): KlondikePile
Parameters
| Name | Type | Description |
|---|---|---|
card | number | The packed card number from 0 to 51. |
Returns
KlondikePile
The foundation a card goes to.
Examples
import { foundationPileOf } from "@johnmorrisdotca/toranpu/klondike";
console.log(foundationPileOf(0));SWhat it prints (run when this page was built)