formatOpening関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One line of a game: the opening throw.
インポート
import { formatOpening } from "@johnmorrisdotca/sugoroku";
定義
function formatOpening(throws: readonly [number, number]): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
throws | readonly [number, number] | The opening die for white, then black. |
戻り値
string
One line of a game: the opening throw.
例
import { formatOpening } from "@johnmorrisdotca/sugoroku";
console.log(formatOpening([3,1]));open 3 1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。