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

Boxtype

A box: where something is, in landscape units before any turning.

Import it

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

Definition

type Box = {
    x: number;
    y: number;
    w: number;
    h: number;
};

Members

NameTypeDescription
xnumber
ynumber
wnumber
hnumber

Examples

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

const value: Box = {x:0,y:0,w:100,h:100};
console.log(value);
{ x: 0, y: 0, w: 100, h: 100 }

What it prints (run when this page was built)

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