Skip to content

Commit

Permalink
Update solutionParser.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkellly committed May 20, 2024
1 parent 87ec3eb commit 8185f56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/solutionParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 8185f56

Please sign in to comment.