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

SUGOROKU_CHECKER_SETSconstant

The checkers the drawing knows by name. contrast is for readers who tell colours apart with difficulty: pale and near-black, with strong rims.

Import it

import { SUGOROKU_CHECKER_SETS } from "@johnmorrisdotca/sugoroku/draw";

Definition

const SUGOROKU_CHECKER_SETS: Readonly<Record<SugorokuCheckerSetName, Pick<SugorokuColours, "black" | "white" | "whiteEdge" | "blackEdge">>> = {
    classic: { white: "#f6f0df", whiteEdge: "#b3a888", black: "#2b2724", blackEdge: "#0d0b0a" },
    "red-and-white": { white: "#f6f0df", whiteEdge: "#b3a888", black: "#b3332b", blackEdge: "#5d1712" },
    "gold-and-blue": { white: "#e8bf4a", whiteEdge: "#8d6a14", black: "#27508f", blackEdge: "#102446" },
    contrast: { white: "#ffffff", whiteEdge: "#000000", black: "#111111", blackEdge: "#ffffff" },
}

Members

NameTypeDescription
classicPick<SugorokuColours, "black" | "white" | "whiteEdge" | "blackEdge">
red-and-whitePick<SugorokuColours, "black" | "white" | "whiteEdge" | "blackEdge">
gold-and-bluePick<SugorokuColours, "black" | "white" | "whiteEdge" | "blackEdge">
contrastPick<SugorokuColours, "black" | "white" | "whiteEdge" | "blackEdge">

Examples

import { SUGOROKU_CHECKER_SETS } from "@johnmorrisdotca/sugoroku/draw";
console.log(SUGOROKU_CHECKER_SETS);
{
  classic: {
    white: '#f6f0df',
    whiteEdge: '#b3a888',
    black: '#2b2724',
    blackEdge: '#0d0b0a'
  },
  'red-and-white': {
    white: '#f6f0df',
    whiteEdge: '#b3a888',
    black: '#b3332b',
    blackEdge: '#5d1712'
  },
  'gold-and-blue': {
    white: '#e8bf4a',
    whiteEdge: '#8d6a14',
    black: '#27508f',
    blackEdge: '#102446'
  },
  contrast: {
    white: '#ffffff',
    whiteEdge: '#000000',
    black: '#111111',
    blackEdge: '#ffffff'
  }
}

What it prints (run when this page was built)

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