SpiderMovetype
One move: deal a card from the stock onto every column (deal), or carry
count cards from the top of one column onto another. Columns are named
0 to 9, from the left.
Import it
import type { SpiderMove } from "@johnmorrisdotca/toranpu/spider";
Definition
type SpiderMove = {
kind: "deal";
} | {
kind: "carry";
from: number;
to: number;
count: number;
};
Examples
import type { SpiderMove } from "@johnmorrisdotca/toranpu/spider";
const value: SpiderMove = { kind: "deal" };
console.log(value.kind);dealWhat it prints (run when this page was built)