この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。
import { newGame, rollDice, legalPlaysOf, playTurn, settingsFor } from "@johnmorrisdotca/sugoroku";const settings = settingsFor("nackgammon", { points: 5, cube: true, gammons: true })replayRecord(text) // { ok: true, match, games } — every move checked against the ruleschoosePlay(game, { strength: "strong" }) // the computer's play, in a few millisecondsdrawSugoroku(position, { cube: { value: 2, owner: "white" }, dice }) // the board as SVG textmountSugoroku(element, { variant: "tabula", computer: { black: "careful" } }) // a board to play<sugoroku-board variant="long-gammon" points="3" cube black="strong"></sugoroku-board>formatPlay(moves) // "24/18 13/11" and "bar/22*", standard notation