isFoundationPilefunction
Whether a pile a move names is a suit's foundation.
Import it
import { isFoundationPile } from "@johnmorrisdotca/toranpu/freecell";
Definition
function isFoundationPile(pile: FreeCellPile): boolean
Parameters
| Name | Type | Description |
|---|---|---|
pile | FreeCellPile | The pile to inspect or arrange. |
Returns
boolean
Whether a pile a move names is a suit's foundation.
Examples
import { isFoundationPile } from "@johnmorrisdotca/toranpu/freecell";
console.log(isFoundationPile("S"));trueWhat it prints (run when this page was built)