foundationAtfunction
Which foundation, from 0 in SUITS order, a pile a move names is.
Import it
import { foundationAt } from "@johnmorrisdotca/toranpu/freecell";
Definition
function foundationAt(pile: FreeCellPile): number
Parameters
| Name | Type | Description |
|---|---|---|
pile | FreeCellPile | The pile to inspect or arrange. |
Returns
number
Which foundation, from 0 in SUITS order, a pile a move names is.
Examples
import { foundationAt } from "@johnmorrisdotca/toranpu/freecell";
console.log(foundationAt("S"));0What it prints (run when this page was built)