encodeMoves関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A list of moves written as text, one after another with nothing between.
インポート
import { encodeMoves } from "@johnmorrisdotca/toranpu/klondike";
定義
function encodeMoves(moves: readonly KlondikeMove[]): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
moves | readonly KlondikeMove[] | The ordered native moves to replay. |
戻り値
string
A list of moves written as text, one after another with nothing between.
例
import { encodeMoves } from "@johnmorrisdotca/toranpu/klondike";
console.log(encodeMoves([{ kind: "draw" }]));d出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。