Skip to the content

Sugoroku双六

Play backgammon and its relatives with native rules, cube and match scoring, seeded dice and replayable records.

Sugoroku is the Japanese name 双六 for games of tables. About the name

Contents

Reference · SVG boards and notation

BoardOptionstype

The cube, viewing side, home direction and orientation used to calculate board geometry.

Import it

import type { BoardOptions } from "@johnmorrisdotca/sugoroku/draw";

Definition

type BoardOptions = {
    cube: boolean;
    view: Side;
    home: "left" | "right";
    orientation: Orientation;
};

Members

NameTypeDescription
cubeboolean

Whether the board has a rail for the doubling cube.

viewSide

Which side's home board is at the bottom of the drawing.

home"left" | "right"

Which end the trays are at.

orientationOrientation

Examples

import type { BoardOptions } from "@johnmorrisdotca/sugoroku/draw";

const value: BoardOptions = {cube:true,view:"white",home:"right",orientation:"landscape"};
console.log(value);
{ cube: true, view: 'white', home: 'right', orientation: 'landscape' }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/sugoroku 1.1.1.