cubing 0.35.10 → 0.35.11
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.
- package/dist/esm/{chunk-7FZAZ3C3.js → chunk-KA53VAHS.js} +15 -8
- package/dist/esm/chunk-KA53VAHS.js.map +7 -0
- package/dist/esm/{chunk-OE3AM6XZ.js → chunk-MTMVMFDV.js} +2 -2
- package/dist/esm/{chunk-OE3AM6XZ.js.map → chunk-MTMVMFDV.js.map} +0 -0
- package/dist/esm/{chunk-77NLJLOE.js → chunk-ZUQFCYEB.js} +4 -4
- package/dist/esm/{chunk-77NLJLOE.js.map → chunk-ZUQFCYEB.js.map} +0 -0
- package/dist/esm/notation/index.js +1 -1
- package/dist/esm/scramble/index.js +3 -3
- package/dist/esm/search/index.js +3 -3
- package/dist/esm/{search-worker-inside-generated-string-CTFAKIM3.js → search-worker-inside-generated-string-BOQDJKWH.js} +24 -24
- package/dist/esm/{search-worker-inside-generated-string-CTFAKIM3.js.map → search-worker-inside-generated-string-BOQDJKWH.js.map} +1 -1
- package/dist/esm/{search-worker-js-entry-NU3D54QT.js → search-worker-js-entry-BJHVT6GJ.js} +3 -3
- package/dist/esm/{search-worker-js-entry-NU3D54QT.js.map → search-worker-js-entry-BJHVT6GJ.js.map} +0 -0
- package/dist/esm/{search-worker-ts-entry-GLXLE5KU.js → search-worker-ts-entry-P4MW2TTD.js} +2 -2
- package/dist/esm/{search-worker-ts-entry-GLXLE5KU.js.map → search-worker-ts-entry-P4MW2TTD.js.map} +0 -0
- package/dist/esm/twisty/index.js +70 -15
- package/dist/esm/twisty/index.js.map +2 -2
- package/dist/types/{TwizzleLink-aa6700aa.d.ts → TwizzleLink-a537bbef.d.ts} +1 -1
- package/dist/types/notation/index.d.ts +1 -1
- package/dist/types/puzzles/index.d.ts +2 -2
- package/dist/types/twisty/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/esm/chunk-7FZAZ3C3.js.map +0 -7
|
@@ -62,6 +62,16 @@ var costFactorsByMetric = {
|
|
|
62
62
|
["Outer" /* Outer */]: { constantFactor: 1, amountFactor: 0 },
|
|
63
63
|
["Inner" /* Inner */]: { constantFactor: 1, amountFactor: 0 }
|
|
64
64
|
},
|
|
65
|
+
["OBQTM" /* OuterBlockQuantumTurnMetric */]: {
|
|
66
|
+
["Rotation" /* Rotation */]: { constantFactor: 0, amountFactor: 0 },
|
|
67
|
+
["Outer" /* Outer */]: { constantFactor: 0, amountFactor: 1 },
|
|
68
|
+
["Inner" /* Inner */]: { constantFactor: 0, amountFactor: 2 }
|
|
69
|
+
},
|
|
70
|
+
["RBQTM" /* RangeBlockQuantumTurnMetric */]: {
|
|
71
|
+
["Rotation" /* Rotation */]: { constantFactor: 0, amountFactor: 0 },
|
|
72
|
+
["Outer" /* Outer */]: { constantFactor: 0, amountFactor: 1 },
|
|
73
|
+
["Inner" /* Inner */]: { constantFactor: 0, amountFactor: 1 }
|
|
74
|
+
},
|
|
65
75
|
["ETM" /* ExecutionTurnMetric */]: {
|
|
66
76
|
["Rotation" /* Rotation */]: { constantFactor: 1, amountFactor: 0 },
|
|
67
77
|
["Outer" /* Outer */]: { constantFactor: 1, amountFactor: 0 },
|
|
@@ -148,13 +158,10 @@ var countQuantumMoves = functionFromTraversal(CountMoves, [
|
|
|
148
158
|
]);
|
|
149
159
|
function countMetricMoves(puzzle, metric, alg) {
|
|
150
160
|
if (puzzle.id === "3x3x3") {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return functionFromTraversal(CountMoves, [
|
|
156
|
-
(move) => countMove3x3x3(metric, move)
|
|
157
|
-
])(alg);
|
|
161
|
+
if (metric in costFactorsByMetric) {
|
|
162
|
+
return functionFromTraversal(CountMoves, [
|
|
163
|
+
(move) => countMove3x3x3(metric, move)
|
|
164
|
+
])(alg);
|
|
158
165
|
}
|
|
159
166
|
} else {
|
|
160
167
|
switch (metric) {
|
|
@@ -207,4 +214,4 @@ export {
|
|
|
207
214
|
countMetricMoves,
|
|
208
215
|
countAnimatedLeaves
|
|
209
216
|
};
|
|
210
|
-
//# sourceMappingURL=chunk-
|
|
217
|
+
//# sourceMappingURL=chunk-KA53VAHS.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/cubing/notation/commonMetrics.ts", "../../src/cubing/notation/cube3x3x3Metrics.ts", "../../src/cubing/notation/CountMoves.ts", "../../src/cubing/notation/CountAnimatedLeaves.ts"],
|
|
4
|
+
"sourcesContent": ["export enum CommonMetric {\n // OBTM (Outer Block Turn Metric)\n OuterBlockTurnMetric = \"OBTM\",\n // RBTM (Range Block Turn Metric)\n RangeBlockTurnMetric = \"RBTM\",\n // SSTM (Single Slice Turn Metric)\n SingleSliceTurnMetric = \"SSTM\",\n // OBQTM (Outer Block Quantum Turn Metric)\n OuterBlockQuantumTurnMetric = \"OBQTM\",\n // RBQTM (Range Block Quantum Turn Metric)\n RangeBlockQuantumTurnMetric = \"RBQTM\",\n // SSQTM (Single Slice Quantum Turn Metric)\n SingleSliceQuantumTurnMetric = \"SSQTM\",\n ExecutionTurnMetric = \"ETM\",\n}\n\nexport enum CommonMetricAlias {\n // QTM (Quantum Turn Metric)\n QuantumTurnMetric = \"OBQTM\",\n // HTM (Hand Turn Metric)\n HandTurnMetric = \"OBTM\",\n // STM (Slice Turn Metric)\n SliceTurnMetric = \"RBTM\",\n}\n", "// TODO: move this into the 3x3x3 puzzle loader.\n\nimport type { Move } from \"../alg\";\nimport { experimentalCube3x3x3KPuzzleDefinition } from \"../puzzles/cubing-private\";\nimport { CommonMetric } from \"./commonMetrics\";\n\nenum MoveType {\n Rotation = \"Rotation\",\n Outer = \"Outer\",\n Inner = \"Inner\",\n}\n\nfunction uncachedMoveCount(moveQuantumString: string): MoveType {\n if (\n moveQuantumString.endsWith(\"v\") ||\n [\"x\", \"y\", \"z\"].includes(moveQuantumString)\n ) {\n // Rv\n return MoveType.Rotation;\n }\n if (\n moveQuantumString.startsWith(\"2\") ||\n [\"M\", \"E\", \"S\"].includes(moveQuantumString)\n ) {\n return MoveType.Inner;\n }\n return MoveType.Outer;\n}\n\nlet cache: Record<string, MoveType> | undefined;\nfunction getCache(): Record<string, MoveType> {\n if (cache) {\n return cache;\n }\n cache = {};\n const moveQuantumStrings = [\n ...Object.keys(experimentalCube3x3x3KPuzzleDefinition.moves),\n ...Object.keys(\n experimentalCube3x3x3KPuzzleDefinition.experimentalDerivedMoves!,\n ),\n ];\n for (const moveQuantumString of moveQuantumStrings) {\n cache[moveQuantumString] = uncachedMoveCount(moveQuantumString);\n }\n return cache;\n}\n\n// Ancient wisdom: https://github.com/cubing/alg.js/blob/0599fad84d81b8d943ad3ea3e5dc191db8b6c157/alg.js#L638-L651\n/**\n * A move with an amount of 0 always has 0 cost. Else, the cost is\n *\n * constantFactor + amountFactor * Math.abs(move.amount)\n *\n */\nexport const costFactorsByMetric: Partial<\n Record<\n CommonMetric,\n Record<\n MoveType,\n {\n constantFactor: number;\n amountFactor: number;\n }\n >\n >\n> = {\n // Note: these are hardcoded for 3x3x3. They will not automatically generalize to any other puzzles.\n [CommonMetric.OuterBlockTurnMetric]: {\n [MoveType.Rotation]: { constantFactor: 0, amountFactor: 0 },\n [MoveType.Outer]: { constantFactor: 1, amountFactor: 0 },\n [MoveType.Inner]: { constantFactor: 2, amountFactor: 0 },\n },\n [CommonMetric.RangeBlockTurnMetric]: {\n [MoveType.Rotation]: { constantFactor: 0, amountFactor: 0 },\n [MoveType.Outer]: { constantFactor: 1, amountFactor: 0 },\n [MoveType.Inner]: { constantFactor: 1, amountFactor: 0 },\n },\n [CommonMetric.OuterBlockQuantumTurnMetric]: {\n [MoveType.Rotation]: { constantFactor: 0, amountFactor: 0 },\n [MoveType.Outer]: { constantFactor: 0, amountFactor: 1 },\n [MoveType.Inner]: { constantFactor: 0, amountFactor: 2 },\n },\n [CommonMetric.RangeBlockQuantumTurnMetric]: {\n [MoveType.Rotation]: { constantFactor: 0, amountFactor: 0 },\n [MoveType.Outer]: { constantFactor: 0, amountFactor: 1 },\n [MoveType.Inner]: { constantFactor: 0, amountFactor: 1 },\n },\n [CommonMetric.ExecutionTurnMetric]: {\n [MoveType.Rotation]: { constantFactor: 1, amountFactor: 0 },\n [MoveType.Outer]: { constantFactor: 1, amountFactor: 0 },\n [MoveType.Inner]: { constantFactor: 1, amountFactor: 0 },\n },\n};\n\nexport function countMove3x3x3(metric: CommonMetric, move: Move): number {\n const costFactors = costFactorsByMetric[metric];\n if (!costFactors) {\n throw new Error(`Invalid metric for 3x3x3: ${metric}`);\n }\n const cache = getCache();\n const moveQuantumString = move.quantum.toString();\n if (!(moveQuantumString in cache)) {\n throw new Error(`Invalid move for 3x3x3 ${metric}: ${moveQuantumString}`);\n }\n const costType = cache[moveQuantumString];\n const { constantFactor, amountFactor } = costFactors[costType];\n return constantFactor + amountFactor * Math.abs(move.amount);\n}\n", "// TODO: move this file somewhere permanent.\nimport {\n Alg,\n Commutator,\n Conjugate,\n functionFromTraversal,\n Grouping,\n LineComment,\n Move,\n Newline,\n Pause,\n TraversalUp,\n} from \"../alg\";\nimport type { PuzzleLoader } from \"../puzzles\";\nimport { CommonMetric } from \"./commonMetrics\";\nimport { costFactorsByMetric, countMove3x3x3 } from \"./cube3x3x3Metrics\";\n\n/*\n * For movecount, that understands puzzle rotations. This code\n * should be moved to the alg class, probably.\n */\nclass CountMoves extends TraversalUp<number> {\n constructor(private metric: (move: Move) => number) {\n super();\n }\n\n public traverseAlg(alg: Alg): number {\n let r = 0;\n for (const algNode of alg.childAlgNodes()) {\n r += this.traverseAlgNode(algNode);\n }\n return r;\n }\n\n public traverseGrouping(grouping: Grouping): number {\n const alg: Alg = grouping.alg;\n return this.traverseAlg(alg) * Math.abs(grouping.amount);\n }\n\n public traverseMove(move: Move): number {\n return this.metric(move);\n }\n\n public traverseCommutator(commutator: Commutator): number {\n return (\n 2 * (this.traverseAlg(commutator.A) + this.traverseAlg(commutator.B))\n );\n }\n\n public traverseConjugate(conjugate: Conjugate): number {\n return 2 * this.traverseAlg(conjugate.A) + this.traverseAlg(conjugate.B);\n }\n\n // TODO: Remove spaces between repeated pauses (in traverseSequence)\n public traversePause(_pause: Pause): number {\n return 0;\n }\n\n public traverseNewline(_newLine: Newline): number {\n return 0;\n }\n\n // TODO: Enforce being followed by a newline (or the end of the alg)?\n public traverseLineComment(_comment: LineComment): number {\n return 0;\n }\n}\n\nfunction isCharUppercase(c: string): boolean {\n return \"A\" <= c && c <= \"Z\";\n}\n\n// TODO: Implement a puzzle-specific way to calculate this.\nfunction baseMetric(move: Move): number {\n const fam = move.family;\n if (\n (isCharUppercase(fam[0]) && fam[fam.length - 1] === \"v\") ||\n fam === \"x\" ||\n fam === \"y\" ||\n fam === \"z\" ||\n fam === \"T\"\n ) {\n return 0;\n } else {\n return 1;\n }\n}\n\nfunction etmMetric(_move: Move): number {\n return 1;\n}\n\n// TODO: Implement a puzzle-specific way to calculate this.\nfunction quantumMetric(move: Move): number {\n const fam = move.family;\n if (\n (isCharUppercase(fam[0]) && fam[fam.length - 1] === \"v\") ||\n fam === \"x\" ||\n fam === \"y\" ||\n fam === \"z\" ||\n fam === \"T\"\n ) {\n return 0;\n } else {\n return Math.abs(move.amount);\n }\n}\n\nexport const countMoves = functionFromTraversal(CountMoves, [baseMetric]);\nexport const countMovesETM = functionFromTraversal(CountMoves, [etmMetric]);\nexport const countQuantumMoves = functionFromTraversal(CountMoves, [\n quantumMetric,\n]);\n\n/**\n * Only implemented so far:\n *\n * - 3x3x3: OBTM, RBTM, ETM\n */\nexport function countMetricMoves(\n puzzle: PuzzleLoader,\n metric: CommonMetric,\n alg: Alg,\n): number {\n if (puzzle.id === \"3x3x3\") {\n if (metric in costFactorsByMetric) {\n return functionFromTraversal(CountMoves, [\n (move: Move) => countMove3x3x3(metric, move),\n ])(alg);\n }\n } else {\n switch (metric) {\n case CommonMetric.ExecutionTurnMetric:\n return countMovesETM(alg);\n }\n }\n throw new Error(\"Unsupported puzzle or metric.\");\n}\n", "import {\n Alg,\n Commutator,\n Conjugate,\n Grouping,\n LineComment,\n Move,\n Newline,\n Pause,\n TraversalUp,\n} from \"../alg\";\nimport { functionFromTraversal } from \"../alg\";\n\n// TODO: Include Pause, include amounts\nclass CountAnimatedLeaves extends TraversalUp<number, number> {\n public traverseAlg(alg: Alg): number {\n let total = 0;\n for (const part of alg.childAlgNodes()) {\n total += this.traverseAlgNode(part);\n }\n return total;\n }\n\n public traverseGrouping(grouping: Grouping): number {\n return this.traverseAlg(grouping.alg) * Math.abs(grouping.amount);\n }\n\n public traverseMove(_move: Move): number {\n return 1;\n }\n\n public traverseCommutator(commutator: Commutator): number {\n return (\n 2 * (this.traverseAlg(commutator.A) + this.traverseAlg(commutator.B))\n );\n }\n\n public traverseConjugate(conjugate: Conjugate): number {\n return 2 * this.traverseAlg(conjugate.A) + this.traverseAlg(conjugate.B);\n }\n\n public traversePause(_pause: Pause): number {\n return 1;\n }\n\n public traverseNewline(_newline: Newline): number {\n return 0;\n }\n\n public traverseLineComment(_comment: LineComment): number {\n return 0;\n }\n}\n\nexport const countAnimatedLeaves = functionFromTraversal(CountAnimatedLeaves);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAAO,IAAK,eAAL,kBAAKA,kBAAL;AAEL,EAAAA,cAAA,0BAAuB;AAEvB,EAAAA,cAAA,0BAAuB;AAEvB,EAAAA,cAAA,2BAAwB;AAExB,EAAAA,cAAA,iCAA8B;AAE9B,EAAAA,cAAA,iCAA8B;AAE9B,EAAAA,cAAA,kCAA+B;AAC/B,EAAAA,cAAA,yBAAsB;AAbZ,SAAAA;AAAA,GAAA;AAgBL,IAAK,oBAAL,kBAAKC,uBAAL;AAEL,EAAAA,mBAAA,uBAAoB;AAEpB,EAAAA,mBAAA,oBAAiB;AAEjB,EAAAA,mBAAA,qBAAkB;AANR,SAAAA;AAAA,GAAA;;;ACJZ,SAAS,kBAAkB,mBAAqC;AAC9D,MACE,kBAA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QACvC,CAAC,SAAe,eAAe,QAAQ,IAAI;AAAA,MAC7C,CAAC,EAAE,GAAG;AAAA,IACR;AAAA,EACF,OAAO;AACL,YAAQ,QAAQ;AAAA,MACd;AACE,eAAO,cAAc,GAAG;AAAA,IAC5B;AAAA,EACF;AACA,QAAM,IAAI,MAAM,+BAA+B;AACjD;;;AC3HA,IAAM,sBAAN,cAAkC,YAA4B;AAAA,EACrD,YAAY,KAAkB;AACnC,QAAI,QAAQ;AACZ,eAAW,QAAQ,IAAI,cAAc,GAAG;AACtC,eAAS,KAAK,gBAAgB,IAAI;AAAA,IACpC;AACA,WAAO;AAAA,EACT;AAAA,EAEO,iBAAiB,UAA4B;AAClD,WAAO,KAAK,YAAY,SAAS,GAAG,IAAI,KAAK,IAAI,SAAS,MAAM;AAAA,EAClE;AAAA,EAEO,aAAa,OAAqB;AACvC,WAAO;AAAA,EACT;AAAA,EAEO,mBAAmB,YAAgC;AACxD,WACE,KAAK,KAAK,YAAY,WAAW,CAAC,IAAI,KAAK,YAAY,WAAW,CAAC;AAAA,EAEvE;AAAA,EAEO,kBAAkB,WAA8B;AACrD,WAAO,IAAI,KAAK,YAAY,UAAU,CAAC,IAAI,KAAK,YAAY,UAAU,CAAC;AAAA,EACzE;AAAA,EAEO,cAAc,QAAuB;AAC1C,WAAO;AAAA,EACT;AAAA,EAEO,gBAAgB,UAA2B;AAChD,WAAO;AAAA,EACT;AAAA,EAEO,oBAAoB,UAA+B;AACxD,WAAO;AAAA,EACT;AACF;AAEO,IAAM,sBAAsB,sBAAsB,mBAAmB;",
|
|
6
|
+
"names": ["CommonMetric", "CommonMetricAlias", "cache"]
|
|
7
|
+
}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-DKG7EU7X.js";
|
|
11
11
|
import {
|
|
12
12
|
countMoves
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KA53VAHS.js";
|
|
14
14
|
import {
|
|
15
15
|
cube2x2x2,
|
|
16
16
|
puzzles
|
|
@@ -789,4 +789,4 @@ var insideAPI = {
|
|
|
789
789
|
export {
|
|
790
790
|
insideAPI
|
|
791
791
|
};
|
|
792
|
-
//# sourceMappingURL=chunk-
|
|
792
|
+
//# sourceMappingURL=chunk-MTMVMFDV.js.map
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
insideAPI
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MTMVMFDV.js";
|
|
4
4
|
import {
|
|
5
5
|
exposeAPI
|
|
6
6
|
} from "./chunk-RHC3DIN3.js";
|
|
@@ -106,7 +106,7 @@ async function constructWorker(source, options) {
|
|
|
106
106
|
// src/cubing/search/inside/search-worker-ts-entry-path-getter.ts
|
|
107
107
|
exposeAPI.expose = false;
|
|
108
108
|
async function getWorkerEntryFileURL() {
|
|
109
|
-
return (await import("./search-worker-ts-entry-
|
|
109
|
+
return (await import("./search-worker-ts-entry-P4MW2TTD.js")).WORKER_ENTRY_FILE_URL;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// src/cubing/search/instantiator.ts
|
|
@@ -170,7 +170,7 @@ function wrapWithTerminate(worker) {
|
|
|
170
170
|
return { insideAPI: insideAPI2, outsideAPI: { terminate } };
|
|
171
171
|
}
|
|
172
172
|
async function instantiateClassicWorker() {
|
|
173
|
-
const { workerSource } = await import("./search-worker-inside-generated-string-
|
|
173
|
+
const { workerSource } = await import("./search-worker-inside-generated-string-BOQDJKWH.js");
|
|
174
174
|
const worker = await constructWorker(workerSource, { eval: true });
|
|
175
175
|
return wrapWithTerminate(worker);
|
|
176
176
|
}
|
|
@@ -324,4 +324,4 @@ export {
|
|
|
324
324
|
solveTwsearch,
|
|
325
325
|
setDebug
|
|
326
326
|
};
|
|
327
|
-
//# sourceMappingURL=chunk-
|
|
327
|
+
//# sourceMappingURL=chunk-ZUQFCYEB.js.map
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
randomScrambleForEvent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ZUQFCYEB.js";
|
|
4
|
+
import "../chunk-MTMVMFDV.js";
|
|
5
5
|
import "../chunk-RHC3DIN3.js";
|
|
6
6
|
import "../chunk-EV25IJFC.js";
|
|
7
7
|
import "../chunk-DKG7EU7X.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-KA53VAHS.js";
|
|
9
9
|
import "../chunk-67PUZ2YF.js";
|
|
10
10
|
import "../chunk-6TTWMZXN.js";
|
|
11
11
|
import "../chunk-KLI2E737.js";
|
package/dist/esm/search/index.js
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
solvePyraminx,
|
|
7
7
|
solveSkewb,
|
|
8
8
|
solveTwsearch
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-ZUQFCYEB.js";
|
|
10
|
+
import "../chunk-MTMVMFDV.js";
|
|
11
11
|
import "../chunk-RHC3DIN3.js";
|
|
12
12
|
import "../chunk-EV25IJFC.js";
|
|
13
13
|
import {
|
|
14
14
|
random333State
|
|
15
15
|
} from "../chunk-DKG7EU7X.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-KA53VAHS.js";
|
|
17
17
|
import "../chunk-67PUZ2YF.js";
|
|
18
18
|
import "../chunk-6TTWMZXN.js";
|
|
19
19
|
import "../chunk-KLI2E737.js";
|