Skip to content

Commit

Permalink
remove extra typings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyson Decker committed Mar 9, 2022
1 parent 9660ca8 commit 4c08e73
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 68 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# srScrambler
Tool to generate scrambles for various twisty puzzles. This is not an official WCA scrambler. But this is very simple and should be good enough for casual scrambles.
Tool to generate scrambles for various twisty puzzles. ***This is not an official WCA scrambler.*** srScrambler won't generate scrambles with canceling moves, but it is still a naive scramble implemenation. But good enough for casual use.

- Rubiks Cube (NxN)
- Skewb
Expand Down
19 changes: 0 additions & 19 deletions dist/enums.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/enums.d.ts.map

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

33 changes: 0 additions & 33 deletions dist/scrambler/scrambler.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/scrambler/scrambler.d.ts.map

This file was deleted.

3 changes: 0 additions & 3 deletions dist/util.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/util.d.ts.map

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sr-scrambler",
"version": "2.0.1",
"version": "2.0.2",
"description": "utilitiy to generate scrambles for twisty puzzles (rubiks cube, megaminx, pyraminx, skewb, square1)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 0 additions & 6 deletions src/scrambler/scrambler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,10 @@ export const generateSquare1Scramble = (numTurns: number = 12) => {
while (turns != 0) {
if (turns < 0) {
let piece = bottom.shift();
if (piece > (-turns)) {
throw Error("breaking")
}
turns += piece;
bottom.push(piece);
} else if (turns > 0) {
let piece = bottom.pop();
if (piece > turns) {
throw Error("breaking2")
}
turns -= piece;
bottom.unshift(piece);
}
Expand Down

0 comments on commit 4c08e73

Please sign in to comment.