本文へ移動

Korokoroコロコロ

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

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

目次

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

DICE_WAR_LIMITS定数

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

What a table may be set up with.

インポート

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

定義

const DICE_WAR_LIMITS: { readonly fewestPlayers: 2; readonly mostPlayers: 8; readonly mostDice: 10; readonly mostPoints: 100; readonly mostRounds: 200; readonly mostWars: 100; } = {
    fewestPlayers: 2,
    mostPlayers: 8,
    mostDice: MAX_DICE,
    mostPoints: 100,
    mostRounds: 200,
    mostWars: 100,
} as const

メンバー

名前型説明
fewestPlayers2

The fewest players.

mostPlayers8

The most players.

mostDice10

The most dice each player rolls.

mostPoints100

The most points a game may be played to.

mostRounds200

The most rounds a game may last.

mostWars100

The most wars one round may go through before it is called off with nobody scoring: with two or more sides to a die it is never reached in practice.

例

import { DICE_WAR_LIMITS } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(DICE_WAR_LIMITS));
[
  'fewestPlayers',
  'mostPlayers',
  'mostDice',
  'mostPoints',
  'mostRounds',
  'mostWars'
]

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

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

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