SugorokuLooktype
How the board looks, apart from the game.
Import it
import type { SugorokuLook } from "@johnmorrisdotca/sugoroku/play";
Definition
type SugorokuLook = {
board?: SugorokuBoardName;
checkers?: SugorokuCheckerSetName;
colours?: Partial<SugorokuColours>;
theme?: "auto" | "light" | "dark";
home?: "left" | "right";
view?: Side | "auto";
numbers?: boolean;
orientation?: Orientation | "auto";
};
Members
| Name | Type | Description |
|---|---|---|
board (optional) | SugorokuBoardName | undefined | |
checkers (optional) | SugorokuCheckerSetName | undefined | |
colours (optional) | Partial<SugorokuColours> | undefined | |
theme (optional) | "auto" | "light" | "dark" | undefined | |
home (optional) | "left" | "right" | undefined | Which end of the board the trays are at. |
view (optional) | Side | "auto" | undefined | Whose home board is at the bottom: |
numbers (optional) | boolean | undefined | Numbers on the points. |
orientation (optional) | Orientation | "auto" | undefined |
|
Examples
import type { SugorokuLook } from "@johnmorrisdotca/sugoroku/play";
const value: SugorokuLook = {board:"green",checkers:"contrast",numbers:true};
console.log(value);{ board: 'green', checkers: 'contrast', numbers: true }What it prints (run when this page was built)