encodeMove関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One move written as text: one or two letters.
インポート
import { encodeMove } from "@johnmorrisdotca/toranpu/freecell";
定義
function encodeMove(move: FreeCellMove): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
move | FreeCellMove | The native move to validate or apply. |
戻り値
string
One move written as text: one or two letters.
例
import { encodeMove } from "@johnmorrisdotca/toranpu/freecell";
console.log(encodeMove({ from: "1", to: "a", count: 1 }));1a出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。