本文へ移動

Sugoroku双六

標準の規則、キューブ、試合の得点、シード付きのサイコロ、再生できる記録で、バックギャモンと仲間のゲームを遊べます。

「双六」は、盤と駒で遊ぶゲームの名前です。 名前について(英語)

目次

リファレンス · 遊べる盤面

SugorokuLook型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

How the board looks, apart from the game.

インポート

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

定義

type SugorokuLook = {
    board?: SugorokuBoardName;
    checkers?: SugorokuCheckerSetName;
    colours?: Partial<SugorokuColours>;
    theme?: "auto" | "light" | "dark";
    home?: "left" | "right";
    view?: Side | "auto";
    numbers?: boolean;
    orientation?: Orientation | "auto";
};

メンバー

名前型説明
board (省略可)SugorokuBoardName | undefined
checkers (省略可)SugorokuCheckerSetName | undefined
colours (省略可)Partial<SugorokuColours> | undefined
theme (省略可)"auto" | "light" | "dark" | undefined
home (省略可)"left" | "right" | undefined

Which end of the board the trays are at.

view (省略可)Side | "auto" | undefined

Whose home board is at the bottom: auto (the default) is the side a person plays when the computer plays the other, otherwise white.

numbers (省略可)boolean | undefined

Numbers on the points.

orientation (省略可)Orientation | "auto" | undefined

auto (the default) stands the board up in a narrow page, such as a phone's.

例

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

const value: SugorokuLook = {board:"green",checkers:"contrast",numbers:true};
console.log(value);
{ board: 'green', checkers: 'contrast', numbers: true }

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/sugoroku 1.1.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。