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