undoAll関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A list of moves undone, last first.
インポート
import { undoAll } from "@johnmorrisdotca/kyuubu";
定義
function undoAll(moves: readonly CubeMove[]): CubeMove[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
moves | readonly CubeMove[] | The turns, in their execution order. |
戻り値
CubeMove[]
A list of moves undone, last first.
例
import { movesNotation, parseMoves, undoAll } from "@johnmorrisdotca/kyuubu";
const moves = parseMoves("R U2", 3)!;
console.log(movesNotation(undoAll(moves), 3));U2 R'出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。