@cubingcenter/scrambler 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  export const clockScrambleGenerator = {
2
2
  info: {
3
- eventId: "clkwca",
3
+ eventId: "clck",
4
4
  name: "Clock",
5
5
  puzzle: "clock",
6
6
  quality: "random-state",
@@ -38,7 +38,7 @@ export async function generateClockScramble(options = {}) {
38
38
  const finalPinsStr = finalPins.join(" ");
39
39
  const scramble = [...moves, finalPinsStr].filter(Boolean).join(" ");
40
40
  return {
41
- eventId: "clkwca",
41
+ eventId: "clck",
42
42
  scramble,
43
43
  moves, // For moves we return the steps without final pins as parsed moves, or just string array
44
44
  quality: "random-state",
@@ -2,7 +2,7 @@ import { createRandomSource } from "../../random/index.js";
2
2
  import { MEGAMINX_R_MOVES, MEGAMINX_D_MOVES, SCRAMBLE_LINES, MOVES_PER_LINE } from "./types.js";
3
3
  export const megaminxScrambleGenerator = {
4
4
  info: {
5
- eventId: "mega",
5
+ eventId: "mgmx",
6
6
  name: "Megaminx",
7
7
  puzzle: "megaminx",
8
8
  quality: "random-move",
@@ -29,7 +29,7 @@ export function generateMegaminxScramble(options = {}) {
29
29
  }
30
30
  const scramble = formatMegaminxScramble(moves);
31
31
  const result = {
32
- eventId: "mega",
32
+ eventId: "mgmx",
33
33
  scramble,
34
34
  moves,
35
35
  quality: "random-move",
@@ -5,7 +5,7 @@ import { solvePyraminx } from "./solver.js";
5
5
  import { formatPyraminxFacelets, toPyraminxFacelets } from "./facelets.js";
6
6
  export const pyraminxScrambleGenerator = {
7
7
  info: {
8
- eventId: "pyra",
8
+ eventId: "pymx",
9
9
  name: "Pyraminx",
10
10
  puzzle: "pyraminx",
11
11
  quality: "random-state",
@@ -46,7 +46,7 @@ export async function generatePyraminxScramble(options = {}) {
46
46
  }
47
47
  const facelets = toPyraminxFacelets(state);
48
48
  return {
49
- eventId: "pyra",
49
+ eventId: "pymx",
50
50
  scramble: finalMoves.join(" "),
51
51
  moves: finalMoves,
52
52
  quality: "random-state",
@@ -5,7 +5,7 @@ import { solveSkewb } from "./solver.js";
5
5
  import { formatSkewbFacelets, toSkewbFacelets } from "./facelets.js";
6
6
  export const skewbScrambleGenerator = {
7
7
  info: {
8
- eventId: "skewb",
8
+ eventId: "skwb",
9
9
  name: "Skewb",
10
10
  puzzle: "skewb",
11
11
  quality: "random-state",
@@ -33,7 +33,7 @@ export async function generateSkewbScramble(options = {}) {
33
33
  }
34
34
  const facelets = toSkewbFacelets(state);
35
35
  const result = {
36
- eventId: "skewb",
36
+ eventId: "skwb",
37
37
  scramble: formatSkewbAlgorithm(scrambleMoves),
38
38
  moves: scrambleMoves,
39
39
  quality: "random-state",
@@ -4,7 +4,7 @@ exports.clockScrambleGenerator = void 0;
4
4
  exports.generateClockScramble = generateClockScramble;
5
5
  exports.clockScrambleGenerator = {
6
6
  info: {
7
- eventId: "clkwca",
7
+ eventId: "clck",
8
8
  name: "Clock",
9
9
  puzzle: "clock",
10
10
  quality: "random-state",
@@ -42,7 +42,7 @@ async function generateClockScramble(options = {}) {
42
42
  const finalPinsStr = finalPins.join(" ");
43
43
  const scramble = [...moves, finalPinsStr].filter(Boolean).join(" ");
44
44
  return {
45
- eventId: "clkwca",
45
+ eventId: "clck",
46
46
  scramble,
47
47
  moves, // For moves we return the steps without final pins as parsed moves, or just string array
48
48
  quality: "random-state",
@@ -6,7 +6,7 @@ const index_js_1 = require("../../random/index.js");
6
6
  const types_js_1 = require("./types.js");
7
7
  exports.megaminxScrambleGenerator = {
8
8
  info: {
9
- eventId: "mega",
9
+ eventId: "mgmx",
10
10
  name: "Megaminx",
11
11
  puzzle: "megaminx",
12
12
  quality: "random-move",
@@ -33,7 +33,7 @@ function generateMegaminxScramble(options = {}) {
33
33
  }
34
34
  const scramble = formatMegaminxScramble(moves);
35
35
  const result = {
36
- eventId: "mega",
36
+ eventId: "mgmx",
37
37
  scramble,
38
38
  moves,
39
39
  quality: "random-move",
@@ -9,7 +9,7 @@ const solver_js_1 = require("./solver.js");
9
9
  const facelets_js_1 = require("./facelets.js");
10
10
  exports.pyraminxScrambleGenerator = {
11
11
  info: {
12
- eventId: "pyra",
12
+ eventId: "pymx",
13
13
  name: "Pyraminx",
14
14
  puzzle: "pyraminx",
15
15
  quality: "random-state",
@@ -50,7 +50,7 @@ async function generatePyraminxScramble(options = {}) {
50
50
  }
51
51
  const facelets = (0, facelets_js_1.toPyraminxFacelets)(state);
52
52
  return {
53
- eventId: "pyra",
53
+ eventId: "pymx",
54
54
  scramble: finalMoves.join(" "),
55
55
  moves: finalMoves,
56
56
  quality: "random-state",
@@ -9,7 +9,7 @@ const solver_js_1 = require("./solver.js");
9
9
  const facelets_js_1 = require("./facelets.js");
10
10
  exports.skewbScrambleGenerator = {
11
11
  info: {
12
- eventId: "skewb",
12
+ eventId: "skwb",
13
13
  name: "Skewb",
14
14
  puzzle: "skewb",
15
15
  quality: "random-state",
@@ -37,7 +37,7 @@ async function generateSkewbScramble(options = {}) {
37
37
  }
38
38
  const facelets = (0, facelets_js_1.toSkewbFacelets)(state);
39
39
  const result = {
40
- eventId: "skewb",
40
+ eventId: "skwb",
41
41
  scramble: (0, moves_js_1.formatSkewbAlgorithm)(scrambleMoves),
42
42
  moves: scrambleMoves,
43
43
  quality: "random-state",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubingcenter/scrambler",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Extensible scramble generation toolkit for CubingCenter projects.",
5
5
  "type": "module",
6
6
  "license": "MIT",