From 8185f565758ba8d483a0c463539765b20c1a1404 Mon Sep 17 00:00:00 2001 From: Simon Kelly Date: Mon, 20 May 2024 23:41:09 +0100 Subject: [PATCH] Update solutionParser.ts --- src/lib/solutionParser.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/solutionParser.ts b/src/lib/solutionParser.ts index 6482c0f..56a5032 100644 --- a/src/lib/solutionParser.ts +++ b/src/lib/solutionParser.ts @@ -6,6 +6,7 @@ import commutator from './vendor/commutator'; const POSSIBLE_MOVES = ['U', 'F', 'R', 'D', 'B', 'L', 'E', 'S', 'M']; const POSSIBLE_AMOUNTS = ['2', '', "'"]; +// Based on https://mzrg.com/rubik/rotations.shtml export function removeRotations(moves: string[]) { for (let moveIdx = moves.length - 1; moveIdx >= 0; moveIdx--) { const move = moves[moveIdx];