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

colourPropertyfunction

The custom property a colour is set on.

Import it

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

Definition

function colourProperty(name: keyof SugorokuColours): string

Parameters

NameTypeDescription
namekeyof SugorokuColours

The colour property, preset name or sound identifier specified by this signature.

Returns

string

The custom property a colour is set on.

Examples

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

console.log(colourProperty("pointA"));
--sg-point-a

What it prints (run when this page was built)

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