Reference · Rules, tiles and records
ComputerSaidtype
What a computer did in one step of its turn, for the line over its table.
Import it
import type { ComputerSaid } from "@johnmorrisdotca/kumimoji";
Definition
type ComputerSaid = {
kind: "rebuilt";
} | {
kind: "laid";
word: string;
} | {
kind: "drew";
} | {
kind: "traded";
tile: string;
} | {
kind: "done";
out: boolean;
} | {
kind: "resigned";
};
Examples
import type { ComputerSaid } from "@johnmorrisdotca/kumimoji";
const value: ComputerSaid = {kind:"drew"};
console.log(value);{ kind: 'drew' }What it prints (run when this page was built)