本文へ移動

Sugoroku双六

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

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

目次

リファレンス · 規則・ゲーム・記録

EvaluationWeights型

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

The numbers the evaluation is made of, each a number of pips.

インポート

import type { EvaluationWeights } from "@johnmorrisdotca/sugoroku";

定義

type EvaluationWeights = {
    onRoll: number;
    raceChecker: number;
    home: readonly [
        number,
        number,
        number,
        number,
        number,
        number
    ];
    outfield: number;
    middle: number;
    anchor: number;
    anchorAdvanced: number;
    prime: number;
    stack: number;
    blotTempo: number;
    blotBoard: number;
    blotScale: number;
    threat: number;
    threatTempo: number;
    bar: number;
    barBoard: number;
    barOther: number;
};

メンバー

名前型説明
onRollnumber

What it is worth to have the roll, which the side that does not have it must give up.

raceCheckernumber

Per checker still to bear off, in a race.

homereadonly [number, number, number, number, number, number]

What a made point in the home board is worth, by the point, 1 to 6.

outfieldnumber

A made point in the outfield (7 to 12), and in the other outfield (13 to 18).

middlenumber
anchornumber

A made point in the other side's home board, an anchor, and the extra for the 20 and 21 points.

anchorAdvancednumber
primenumber

The reward for a run of made points: this times the square of its length beyond two.

stacknumber

The cost of each checker beyond four on a point.

blotTemponumber

A blot's cost when hit, as a chance times (the pips it loses, this many more for the turn spent, and this much for each point the other side holds at home), all times blotScale.

blotBoardnumber
blotScalenumber
threatnumber

A share of the other side's blots that this side threatens.

threatTemponumber
barnumber

A checker on the bar, or yet to enter: a base cost and a cost for each point the other side holds at home.

barBoardnumber
barOthernumber

How much of that the other side's checkers on the bar are worth to this side.

例

import type { EvaluationWeights } from "@johnmorrisdotca/sugoroku";
import { EVALUATION_WEIGHTS } from "@johnmorrisdotca/sugoroku";

const value: EvaluationWeights = EVALUATION_WEIGHTS;
console.log(value);
{
  onRoll: 4,
  raceChecker: 1.6,
  home: [ 1.5, 3, 4, 5.2, 5.8, 4.6 ],
  outfield: 2.2,
  middle: 0.6,
  anchor: 5,
  anchorAdvanced: 7.5,
  prime: 1.8,
  stack: 1.4,
  blotTempo: 7,
  blotBoard: 1.2,
  blotScale: 1.15,
  threat: 0.45,
  threatTempo: 4,
  bar: 8,
  barBoard: 1.4,
  barOther: 0.8
}

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

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

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