UNPKG

tsgammon-core

Version:

A Backgammon library for Typescript, formerly developed as a part of tsgammon-ui

19 lines 717 B
import { DicePip } from '../Dices'; /** * ダイスの目のペアを文字列として出力する。 * * ```typescript * formatDices([1,3]) // "13" * formatDices([1,3,4]) // "13" <- 先頭の二つ以外は無視 * formatDices([3,3,3,3],true) // "3(4)" * formatDices([3,3,3,3]) // "3333" * formatDices([3,3,4]) // "333" * formatDices([]) // "" * ``` * * @param dices ダイスの目のペア * @param fmtDoublet trueの場合、dices[0]とdices[1]が同じ目であればゾロ目と見なして別形式で表記する * @returns */ export declare function formatDices(dices: DicePip[], fmtDoublet?: boolean): string; //# sourceMappingURL=formatDices.d.ts.map