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 · Playable board

SoundNametype

THE SOUNDS OF A BOARD, optional: a checker set down, a checker hit, the dice and the cube. The files are in the package's sounds/ folder (short WAV clips from Kenney's "Casino Audio", Creative Commons Zero: see sounds/CREDITS.txt) and are found beside the code with import.meta.url, so a bundler that follows that pattern ships them. A page that serves them from somewhere else gives their addresses.

Import it

import type { SoundName } from "@johnmorrisdotca/sugoroku/play";

Definition

type SoundName = "clack" | "hit" | "dice" | "cube";

Examples

import type { SoundName } from "@johnmorrisdotca/sugoroku/play";

const value: SoundName = "clack";
console.log(value);
clack

What it prints (run when this page was built)

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