KlondikeColumntype
One of the seven columns: its cards from the bottom up, of which the first down lie face down.
Import it
import type { KlondikeColumn } from "@johnmorrisdotca/toranpu/klondike";
Definition
type KlondikeColumn = {
down: number;
cards: readonly number[];
};
Members
| Name | Type | Description |
|---|---|---|
down | number | |
cards | readonly number[] |
Examples
import { dealKlondike, dealOfSeed, deckOf } from "@johnmorrisdotca/toranpu/klondike";
import type { KlondikeColumn } from "@johnmorrisdotca/toranpu/klondike";
const table = dealKlondike(deckOf(dealOfSeed(42))!, { draw: 3, passes: 3 });
const value: KlondikeColumn = table.tableau[0]!;
console.log(value.down);0What it prints (run when this page was built)