# Sugoroku 双六 — Backgammon and its variants > Sugoroku 双六 — Backgammon and its variants: native rules, doubling cube, match play, Long Gammon, Nackgammon, Hypergammon and Tabula, replayable records, computer players and an SVG board. TypeScript, zero dependencies. Install with `npm install @johnmorrisdotca/sugoroku`. Every page below is also an HTML page at the same address ending in .html; the documentation's home is https://johnmorrisdotca.github.io/sugoroku/docs/. The examples on the reference pages are run when the site is built, and what they print is shown under them. ## Guides - [Getting started](https://johnmorrisdotca.github.io/sugoroku/docs/guides/getting-started.md): Open a game and play one complete legal turn. - [Play legal turns and undo moves](https://johnmorrisdotca.github.io/sugoroku/docs/guides/turns.md): Distinguish a move from a full turn and honor required dice. - [Choose variants and named presets](https://johnmorrisdotca.github.io/sugoroku/docs/guides/variants.md): Resolve a variant separately from cube and match rules. - [Handle the cube and match score](https://johnmorrisdotca.github.io/sugoroku/docs/guides/matches.md): Offer, take or drop only in the allowed phase. - [Write notation and replay records](https://johnmorrisdotca.github.io/sugoroku/docs/guides/records.md): Keep chronological actions and verify a record against native rules. - [Draw and embed boards or positions](https://johnmorrisdotca.github.io/sugoroku/docs/guides/drawing-embeds.md): Choose a static diagram or a native playable board. - [Computer choices and reproducible dice](https://johnmorrisdotca.github.io/sugoroku/docs/guides/computers-dice.md): Separate legal decisions, random ties and time-limited lookahead. - [Architecture and immutable state](https://johnmorrisdotca.github.io/sugoroku/docs/guides/architecture.md): Follow the board, move, turn, game and match layers. - [Troubleshooting and FAQ](https://johnmorrisdotca.github.io/sugoroku/docs/guides/troubleshooting.md): Interpret illegal-phase errors, refused records and unsupported IDs. - [Upgrading and moving a host](https://johnmorrisdotca.github.io/sugoroku/docs/guides/upgrading.md): Preserve native numbering, records and embed precedence. ## Reference - [@johnmorrisdotca/sugoroku/draw](https://johnmorrisdotca.github.io/sugoroku/docs/api/draw/index.md): 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. - [@johnmorrisdotca/sugoroku/play](https://johnmorrisdotca.github.io/sugoroku/docs/api/play/index.md): 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. - [@johnmorrisdotca/sugoroku/element](https://johnmorrisdotca.github.io/sugoroku/docs/api/element/index.md): Board and position elements - [@johnmorrisdotca/sugoroku/element/define](https://johnmorrisdotca.github.io/sugoroku/docs/api/element-define/index.md): Register the elements - [@johnmorrisdotca/sugoroku](https://johnmorrisdotca.github.io/sugoroku/docs/api/main/index.md): Pure backgammon and variant rules, legal turns, cube and match scoring, dice, records and computer choices. ## Optional - [Changelog](https://johnmorrisdotca.github.io/sugoroku/docs/changelog.md): every release - [Every export, in full](https://johnmorrisdotca.github.io/sugoroku/llms-full.txt) - [Source](https://github.com/johnmorrisdotca/sugoroku)