本文へ移動

Korokoroコロコロ

ダイスを組み合わせて振り、ダイス表記を読み取り、正確な確率を調べます。履歴の保存やシードを指定した再現もできます。

「コロコロ」は、小さなものが転がる様子を表す言葉です。 名前について(英語)

目次

リファレンス · ロールと正確な確率

KOROKORO_CLOTHS定数

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

THE CLOTHS A TRAY MAY BE LAID IN: the same five the whole family offers, and itsutsu.com's boards — green (the tray's own, unless said), blue, red, black, and wood. Each is the felt's colour, its deep edge and the ink written on it, given to the tray as its --kk-felt variables.

インポート

import { KOROKORO_CLOTHS } from "@johnmorrisdotca/korokoro";

定義

const KOROKORO_CLOTHS: { readonly green: { readonly felt: "#2f5d4a"; readonly deep: "#1f4135"; readonly ink: "#f3efe4"; }; readonly blue: { readonly felt: "#2865a6"; readonly deep: "#1a4677"; readonly ink: "#f3efe4"; }; readonly red: { readonly felt: "#a3342e"; readonly deep: "#7a231f"; readonly ink: "#f3efe4"; }; readonly black: { readonly felt: "#2f3236"; readonly deep: "#1b1d20"; readonly ink: "#ece8dc"; }; readonly wood: { readonly felt: "#e2ba7a"; readonly deep: "#c4954f"; readonly ink: "#2b1d0e"; }; } = {
    green: { felt: "#2f5d4a", deep: "#1f4135", ink: "#f3efe4" },
    blue: { felt: "#2865a6", deep: "#1a4677", ink: "#f3efe4" },
    red: { felt: "#a3342e", deep: "#7a231f", ink: "#f3efe4" },
    black: { felt: "#2f3236", deep: "#1b1d20", ink: "#ece8dc" },
    wood: { felt: "#e2ba7a", deep: "#c4954f", ink: "#2b1d0e" },
} as const

メンバー

名前型説明
green{ readonly felt: "#2f5d4a"; readonly deep: "#1f4135"; readonly ink: "#f3efe4"; }
blue{ readonly felt: "#2865a6"; readonly deep: "#1a4677"; readonly ink: "#f3efe4"; }
red{ readonly felt: "#a3342e"; readonly deep: "#7a231f"; readonly ink: "#f3efe4"; }
black{ readonly felt: "#2f3236"; readonly deep: "#1b1d20"; readonly ink: "#ece8dc"; }
wood{ readonly felt: "#e2ba7a"; readonly deep: "#c4954f"; readonly ink: "#2b1d0e"; }

例

import { KOROKORO_CLOTHS } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(KOROKORO_CLOTHS));
[ 'green', 'blue', 'red', 'black', 'wood' ]

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

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

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