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

sugorokuSayfunction

A line in a language with its {name}s filled in. A name left unfilled stays as written, so a missing value is visible.

Import it

import { sugorokuSay } from "@johnmorrisdotca/sugoroku/play";

Definition

function sugorokuSay(language: SugorokuLanguage, key: string, values?: Record<string, string | number>): string

Parameters

NameTypeDescription
languageSugorokuLanguage

The English or Japanese display language.

keystring

The native variant, preset or localized-label key specified by the signature.

values (optional)Record<string, string | number>

Replacement strings or numbers for brace-delimited placeholders.

Returns

string

A line in a language with its {name}s filled in. A name left unfilled stays as written, so a missing value is visible.

Examples

import { sugorokuSay } from "@johnmorrisdotca/sugoroku/play";

console.log(sugorokuSay("en","roll"));
Roll dice

What it prints (run when this page was built)

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