FreeCellSpottype
A card on the table, as a person points at it: the pile, and its place from the bottom (-1 for the pile's empty place).
Import it
import type { FreeCellSpot } from "@johnmorrisdotca/toranpu/freecell";
Definition
type FreeCellSpot = {
pile: FreeCellPile;
index: number;
};
Members
| Name | Type | Description |
|---|---|---|
pile | FreeCellPile | |
index | number |
Examples
import type { FreeCellSpot } from "@johnmorrisdotca/toranpu/freecell";
const value: FreeCellSpot = { pile: "1", index: 0 };
console.log(value.pile);1What it prints (run when this page was built)