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

Sugoroku documentation

Sugoroku 双六 — Backgammon and its variants

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

Install

npm install @johnmorrisdotca/sugoroku

Start here

Entry points

Import itWhat it isSize
@johnmorrisdotca/sugoroku/draw
SVG boards and notation · 19 exports
Sugoroku's drawing: SVG text for a board with its checkers, dice and cube, the style that makes it a board, and the colours it is made of.5.2 kB
@johnmorrisdotca/sugoroku/play
Playable board · 16 exports
Sugoroku, played in a page: mountSugoroku draws a game into any element and plays it by touch and mouse, with the doubling cube, Undo, the computer for either side or both, optional sounds, and the words in English and Japanese.20.3 kB
@johnmorrisdotca/sugoroku/element
Board and position elements · 10 exports
24.4 kB
@johnmorrisdotca/sugoroku/element/define
Register the elements · 10 exports
24.4 kB
@johnmorrisdotca/sugoroku
Rules, games and records · 134 exports
Pure backgammon and variant rules, legal turns, cube and match scoring, dice, records and computer choices.11.6 kB

Guides

How-to

Explanation

Troubleshooting & FAQ

Upgrading