FreeCellMovetype
One move: count cards carried from one pile to another. Only a column to
a column ever carries more than one, and then the cards are the top of the
column, in order, and as many as the free cells and empty columns could
carry one at a time (mostCarried).
Import it
import type { FreeCellMove } from "@johnmorrisdotca/toranpu/freecell";
Definition
type FreeCellMove = {
from: FreeCellPile;
to: FreeCellPile;
count: number;
};
Members
| Name | Type | Description |
|---|---|---|
from | FreeCellPile | |
to | FreeCellPile | |
count | number |
Examples
import type { FreeCellMove } from "@johnmorrisdotca/toranpu/freecell";
const value: FreeCellMove = { from: "1", to: "a", count: 1 };
console.log(value.to);aWhat it prints (run when this page was built)