SpiderColumntype
One of the ten columns: its cards from the bottom up, of which the first down lie face down.
Import it
import type { SpiderColumn } from "@johnmorrisdotca/toranpu/spider";
Definition
type SpiderColumn = {
down: number;
cards: readonly number[];
};
Members
| Name | Type | Description |
|---|---|---|
down | number | |
cards | readonly number[] |
Examples
import { dealSpider, spiderDealOfSeed, spiderDeckOf } from "@johnmorrisdotca/toranpu/spider";
import type { SpiderColumn } from "@johnmorrisdotca/toranpu/spider";
const table = dealSpider(spiderDeckOf(spiderDealOfSeed(42, 1), 1)!);
const value: SpiderColumn = table.tableau[0]!;
console.log(value.down);5What it prints (run when this page was built)