cubing 0.29.0 → 0.29.2
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/README.md +1 -6
- package/dist/esm/alg/index.js +1 -1
- package/dist/esm/bluetooth/index.js +36 -31
- package/dist/esm/bluetooth/index.js.map +2 -2
- package/dist/esm/{chunk-NI7U4XAZ.js → chunk-7OIUETFU.js} +9 -8
- package/dist/esm/chunk-7OIUETFU.js.map +7 -0
- package/dist/esm/{chunk-DZGFGBKT.js → chunk-EOEJDDXN.js} +95 -58
- package/dist/esm/chunk-EOEJDDXN.js.map +7 -0
- package/dist/esm/{chunk-WXCNEGW3.js → chunk-HR5D6SD4.js} +2 -2
- package/dist/esm/{chunk-WXCNEGW3.js.map → chunk-HR5D6SD4.js.map} +2 -2
- package/dist/esm/{chunk-LV7IKG36.js → chunk-J5KJ2WWA.js} +35 -34
- package/dist/esm/chunk-J5KJ2WWA.js.map +7 -0
- package/dist/esm/{chunk-ZNAYJGVL.js → chunk-NUMCMGLU.js} +2 -2
- package/dist/esm/{chunk-ZNAYJGVL.js.map → chunk-NUMCMGLU.js.map} +0 -0
- package/dist/esm/{chunk-LSCTPPWV.js → chunk-OT7AIIFN.js} +4 -4
- package/dist/esm/chunk-OT7AIIFN.js.map +7 -0
- package/dist/esm/{chunk-XU5ILFX5.js → chunk-POCUG6QW.js} +6 -4
- package/dist/esm/{chunk-XU5ILFX5.js.map → chunk-POCUG6QW.js.map} +2 -2
- package/dist/esm/{chunk-OX6O2ZO5.js → chunk-QHWK5RXN.js} +1 -1
- package/dist/esm/chunk-QHWK5RXN.js.map +7 -0
- package/dist/esm/{chunk-GW4FGG42.js → chunk-RH4WZIGC.js} +2 -2
- package/dist/esm/{chunk-GW4FGG42.js.map → chunk-RH4WZIGC.js.map} +0 -0
- package/dist/esm/{chunk-TGPS3CXW.js → chunk-RIXFKOD6.js} +7 -7
- package/dist/esm/{chunk-TGPS3CXW.js.map → chunk-RIXFKOD6.js.map} +2 -2
- package/dist/esm/{chunk-2IZUSAXQ.js → chunk-WEYPAZEE.js} +1 -1
- package/dist/esm/{chunk-2IZUSAXQ.js.map → chunk-WEYPAZEE.js.map} +1 -1
- package/dist/esm/{chunk-Q4W5ZR4U.js → chunk-WNZXZ4MW.js} +10 -8
- package/dist/esm/{chunk-Q4W5ZR4U.js.map → chunk-WNZXZ4MW.js.map} +2 -2
- package/dist/esm/{chunk-PYWGREIP.js → chunk-YD2TMJI2.js} +33 -31
- package/dist/esm/chunk-YD2TMJI2.js.map +7 -0
- package/dist/esm/kpuzzle/index.js +2 -2
- package/dist/esm/notation/index.js +2 -2
- package/dist/esm/protocol/index.js +4 -4
- package/dist/esm/puzzle-geometry/index.js +114 -88
- package/dist/esm/puzzle-geometry/index.js.map +2 -2
- package/dist/esm/puzzles/index.js +10 -6
- package/dist/esm/{puzzles-dynamic-side-events-5C7LMBWX.js → puzzles-dynamic-side-events-3K26JTOG.js} +2 -2
- package/dist/esm/{puzzles-dynamic-side-events-5C7LMBWX.js.map → puzzles-dynamic-side-events-3K26JTOG.js.map} +1 -1
- package/dist/esm/scramble/index.js +3 -3
- package/dist/esm/search/index.js +8 -8
- package/dist/esm/{search-dynamic-sgs-side-events-AYX7MZO7.js → search-dynamic-sgs-side-events-AE3TLLPA.js} +6 -6
- package/dist/esm/search-dynamic-sgs-side-events-AE3TLLPA.js.map +7 -0
- package/dist/esm/{search-dynamic-sgs-unofficial-DLJOJFJL.js → search-dynamic-sgs-unofficial-JUXMNMNO.js} +122 -67
- package/dist/esm/search-dynamic-sgs-unofficial-JUXMNMNO.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-3x3x3-7XZTYQMO.js → search-dynamic-solve-3x3x3-SA75BI5I.js} +649 -405
- package/dist/esm/search-dynamic-solve-3x3x3-SA75BI5I.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-4x4x4-CWWTFKMR.js → search-dynamic-solve-4x4x4-ALKH43DT.js} +399 -150
- package/dist/esm/search-dynamic-solve-4x4x4-ALKH43DT.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-fto-4LI23P6K.js → search-dynamic-solve-fto-5B5ZESQC.js} +74 -34
- package/dist/esm/search-dynamic-solve-fto-5B5ZESQC.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-kilominx-3HEVQ4MC.js → search-dynamic-solve-kilominx-OY4VIARG.js} +136 -71
- package/dist/esm/search-dynamic-solve-kilominx-OY4VIARG.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-master_tetraminx-UB32C7MM.js → search-dynamic-solve-master_tetraminx-GE2BTRGI.js} +84 -41
- package/dist/esm/search-dynamic-solve-master_tetraminx-GE2BTRGI.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-sq1-HA72TYF2.js → search-dynamic-solve-sq1-W6PSSLR6.js} +129 -54
- package/dist/esm/search-dynamic-solve-sq1-W6PSSLR6.js.map +7 -0
- package/dist/esm/{search-worker-inside-generated-string-AMEXYCKK.js → search-worker-inside-generated-string-7HYFSSPW.js} +28 -28
- package/dist/esm/search-worker-inside-generated-string-7HYFSSPW.js.map +7 -0
- package/dist/esm/{search-worker-js-entry-TP2T3NUL.js → search-worker-js-entry-SNUA3SOE.js} +44 -35
- package/dist/esm/search-worker-js-entry-SNUA3SOE.js.map +7 -0
- package/dist/esm/{search-worker-ts-entry-NEH77S4I.js → search-worker-ts-entry-LNB7KNFY.js} +3 -3
- package/dist/esm/{search-worker-ts-entry-NEH77S4I.js.map → search-worker-ts-entry-LNB7KNFY.js.map} +0 -0
- package/dist/esm/stream/index.js +1 -1
- package/dist/esm/stream/index.js.map +2 -2
- package/dist/esm/twisty/index.js +287 -273
- package/dist/esm/twisty/index.js.map +2 -2
- package/dist/esm/{twisty-dynamic-3d-D3ZDBJUH.js → twisty-dynamic-3d-PU74EKRA.js} +57 -59
- package/dist/esm/twisty-dynamic-3d-PU74EKRA.js.map +7 -0
- package/dist/types/{TwizzleLink-bef52ecd.d.ts → TwizzleLink-ce20e840.d.ts} +1 -1
- package/dist/types/puzzles/index.d.ts +5 -3
- package/dist/types/twisty/index.d.ts +2 -2
- package/package.json +51 -147
- package/dist/esm/chunk-DZGFGBKT.js.map +0 -7
- package/dist/esm/chunk-LSCTPPWV.js.map +0 -7
- package/dist/esm/chunk-LV7IKG36.js.map +0 -7
- package/dist/esm/chunk-NI7U4XAZ.js.map +0 -7
- package/dist/esm/chunk-OX6O2ZO5.js.map +0 -7
- package/dist/esm/chunk-PYWGREIP.js.map +0 -7
- package/dist/esm/search-dynamic-sgs-side-events-AYX7MZO7.js.map +0 -7
- package/dist/esm/search-dynamic-sgs-unofficial-DLJOJFJL.js.map +0 -7
- package/dist/esm/search-dynamic-solve-3x3x3-7XZTYQMO.js.map +0 -7
- package/dist/esm/search-dynamic-solve-4x4x4-CWWTFKMR.js.map +0 -7
- package/dist/esm/search-dynamic-solve-fto-4LI23P6K.js.map +0 -7
- package/dist/esm/search-dynamic-solve-kilominx-3HEVQ4MC.js.map +0 -7
- package/dist/esm/search-dynamic-solve-master_tetraminx-UB32C7MM.js.map +0 -7
- package/dist/esm/search-dynamic-solve-sq1-HA72TYF2.js.map +0 -7
- package/dist/esm/search-worker-inside-generated-string-AMEXYCKK.js.map +0 -7
- package/dist/esm/search-worker-js-entry-TP2T3NUL.js.map +0 -7
- package/dist/esm/twisty-dynamic-3d-D3ZDBJUH.js.map +0 -7
package/dist/esm/{search-dynamic-solve-3x3x3-7XZTYQMO.js → search-dynamic-solve-3x3x3-SA75BI5I.js}
RENAMED
|
@@ -121,7 +121,7 @@ _.createClassLiteralForArray = function createClassLiteralForArray(dimensions) {
|
|
|
121
121
|
return clazz;
|
|
122
122
|
};
|
|
123
123
|
_.isPrimitive = function isPrimitive() {
|
|
124
|
-
return (this.modifiers & 1)
|
|
124
|
+
return (this.modifiers & 1) !== 0;
|
|
125
125
|
};
|
|
126
126
|
function getClassLiteralForArray(clazz, dimensions) {
|
|
127
127
|
return getClassLiteralForArray_0(clazz, dimensions);
|
|
@@ -150,9 +150,13 @@ function initDims(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafEl
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
function initDims_0(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, index_0, count) {
|
|
153
|
-
var elementTypeCategory
|
|
153
|
+
var elementTypeCategory;
|
|
154
|
+
var i;
|
|
155
|
+
var isLastDim;
|
|
156
|
+
var length_0;
|
|
157
|
+
var result;
|
|
154
158
|
length_0 = dimExprs[index_0];
|
|
155
|
-
isLastDim = index_0
|
|
159
|
+
isLastDim = index_0 === count - 1;
|
|
156
160
|
elementTypeCategory = isLastDim ? leafElementTypeCategory : 0;
|
|
157
161
|
result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0);
|
|
158
162
|
initValues(
|
|
@@ -190,15 +194,18 @@ function initializeArrayElementsWithDefaults(elementTypeCategory, length_0) {
|
|
|
190
194
|
var array = new Array(length_0);
|
|
191
195
|
var initValue;
|
|
192
196
|
switch (elementTypeCategory) {
|
|
193
|
-
case 6:
|
|
197
|
+
case 6: {
|
|
194
198
|
initValue = { l: 0, m: 0, h: 0 };
|
|
195
199
|
break;
|
|
196
|
-
|
|
200
|
+
}
|
|
201
|
+
case 7: {
|
|
197
202
|
initValue = 0;
|
|
198
203
|
break;
|
|
199
|
-
|
|
204
|
+
}
|
|
205
|
+
case 8: {
|
|
200
206
|
initValue = false;
|
|
201
207
|
break;
|
|
208
|
+
}
|
|
202
209
|
default:
|
|
203
210
|
return array;
|
|
204
211
|
}
|
|
@@ -208,7 +215,9 @@ function initializeArrayElementsWithDefaults(elementTypeCategory, length_0) {
|
|
|
208
215
|
return array;
|
|
209
216
|
}
|
|
210
217
|
function create(value_0) {
|
|
211
|
-
var a0
|
|
218
|
+
var a0;
|
|
219
|
+
var a1;
|
|
220
|
+
var a2;
|
|
212
221
|
a0 = value_0 & $intern_9;
|
|
213
222
|
a1 = value_0 >> 22 & $intern_9;
|
|
214
223
|
a2 = value_0 < 0 ? $intern_10 : 0;
|
|
@@ -218,7 +227,9 @@ function create0(l, m, h) {
|
|
|
218
227
|
return { l, m, h };
|
|
219
228
|
}
|
|
220
229
|
function add_1(a, b) {
|
|
221
|
-
var sum0
|
|
230
|
+
var sum0;
|
|
231
|
+
var sum1;
|
|
232
|
+
var sum2;
|
|
222
233
|
sum0 = a.l + b.l;
|
|
223
234
|
sum1 = a.m + b.m + (sum0 >> 22);
|
|
224
235
|
sum2 = a.h + b.h + (sum1 >> 22);
|
|
@@ -228,7 +239,8 @@ function and(a, b) {
|
|
|
228
239
|
return { l: a.l & b.l, m: a.m & b.m, h: a.h & b.h };
|
|
229
240
|
}
|
|
230
241
|
function fromInt(value_0) {
|
|
231
|
-
var rebase
|
|
242
|
+
var rebase;
|
|
243
|
+
var result;
|
|
232
244
|
if (value_0 > -129 && value_0 < 128) {
|
|
233
245
|
rebase = value_0 + 128;
|
|
234
246
|
boxedValues == null && (boxedValues = initDim(
|
|
@@ -246,19 +258,22 @@ function fromInt(value_0) {
|
|
|
246
258
|
return create(value_0);
|
|
247
259
|
}
|
|
248
260
|
function gte(a, b) {
|
|
249
|
-
var signa
|
|
261
|
+
var signa;
|
|
262
|
+
var signb;
|
|
250
263
|
signa = a.h >> 19;
|
|
251
264
|
signb = b.h >> 19;
|
|
252
|
-
return signa
|
|
265
|
+
return signa === 0 ? signb !== 0 || a.h > b.h || a.h === b.h && a.m > b.m || a.h === b.h && a.m === b.m && a.l >= b.l : !(signb === 0 || a.h < b.h || a.h === b.h && a.m < b.m || a.h === b.h && a.m === b.m && a.l < b.l);
|
|
253
266
|
}
|
|
254
267
|
function neq(a, b) {
|
|
255
|
-
return a.l
|
|
268
|
+
return a.l !== b.l || a.m !== b.m || a.h !== b.h;
|
|
256
269
|
}
|
|
257
270
|
function or(a, b) {
|
|
258
271
|
return { l: a.l | b.l, m: a.m | b.m, h: a.h | b.h };
|
|
259
272
|
}
|
|
260
273
|
function shl(a, n) {
|
|
261
|
-
var res0
|
|
274
|
+
var res0;
|
|
275
|
+
var res1;
|
|
276
|
+
var res2;
|
|
262
277
|
n &= 63;
|
|
263
278
|
if (n < 22) {
|
|
264
279
|
res0 = a.l << n;
|
|
@@ -276,10 +291,14 @@ function shl(a, n) {
|
|
|
276
291
|
return { l: res0 & $intern_9, m: res1 & $intern_9, h: res2 & $intern_10 };
|
|
277
292
|
}
|
|
278
293
|
function shr(a, n) {
|
|
279
|
-
var a2
|
|
294
|
+
var a2;
|
|
295
|
+
var negative;
|
|
296
|
+
var res0;
|
|
297
|
+
var res1;
|
|
298
|
+
var res2;
|
|
280
299
|
n &= 63;
|
|
281
300
|
a2 = a.h;
|
|
282
|
-
negative = (a2 & $intern_11)
|
|
301
|
+
negative = (a2 & $intern_11) !== 0;
|
|
283
302
|
negative && (a2 |= -1048576);
|
|
284
303
|
if (n < 22) {
|
|
285
304
|
res2 = a2 >> n;
|
|
@@ -297,7 +316,9 @@ function shr(a, n) {
|
|
|
297
316
|
return { l: res0 & $intern_9, m: res1 & $intern_9, h: res2 & $intern_10 };
|
|
298
317
|
}
|
|
299
318
|
function sub_0(a, b) {
|
|
300
|
-
var sum0
|
|
319
|
+
var sum0;
|
|
320
|
+
var sum1;
|
|
321
|
+
var sum2;
|
|
301
322
|
sum0 = a.l - b.l;
|
|
302
323
|
sum1 = a.m - b.m + (sum0 >> 22);
|
|
303
324
|
sum2 = a.h - b.h + (sum1 >> 22);
|
|
@@ -351,11 +372,11 @@ function equals_7(array1, array2) {
|
|
|
351
372
|
if (array1 === array2) {
|
|
352
373
|
return true;
|
|
353
374
|
}
|
|
354
|
-
if (array1.length
|
|
375
|
+
if (array1.length !== array2.length) {
|
|
355
376
|
return false;
|
|
356
377
|
}
|
|
357
378
|
for (i = 0; i < array1.length; ++i) {
|
|
358
|
-
if (array1[i]
|
|
379
|
+
if (array1[i] !== array2[i]) {
|
|
359
380
|
return false;
|
|
360
381
|
}
|
|
361
382
|
}
|
|
@@ -535,10 +556,10 @@ function getPruning(table, index_0) {
|
|
|
535
556
|
}
|
|
536
557
|
function init_0(fullInit) {
|
|
537
558
|
$clinit_CoordCube();
|
|
538
|
-
if (initLevel
|
|
559
|
+
if (initLevel === 2 || initLevel === 1 && !fullInit) {
|
|
539
560
|
return;
|
|
540
561
|
}
|
|
541
|
-
if (initLevel
|
|
562
|
+
if (initLevel === 0) {
|
|
542
563
|
initPermSym2Raw();
|
|
543
564
|
initCPermMove();
|
|
544
565
|
initEPermMove();
|
|
@@ -611,7 +632,10 @@ function init_0(fullInit) {
|
|
|
611
632
|
initLevel = fullInit ? 2 : 1;
|
|
612
633
|
}
|
|
613
634
|
function initCPermMove() {
|
|
614
|
-
var c
|
|
635
|
+
var c;
|
|
636
|
+
var d;
|
|
637
|
+
var i;
|
|
638
|
+
var j;
|
|
615
639
|
c = new CubieCube();
|
|
616
640
|
d = new CubieCube();
|
|
617
641
|
for (i = 0; i < 2768; i++) {
|
|
@@ -623,7 +647,11 @@ function initCPermMove() {
|
|
|
623
647
|
}
|
|
624
648
|
}
|
|
625
649
|
function initCombPMoveConj() {
|
|
626
|
-
var c
|
|
650
|
+
var c;
|
|
651
|
+
var d;
|
|
652
|
+
var i;
|
|
653
|
+
var j;
|
|
654
|
+
var j0;
|
|
627
655
|
c = new CubieCube();
|
|
628
656
|
d = new CubieCube();
|
|
629
657
|
CCombPMove = initDims(
|
|
@@ -651,7 +679,10 @@ function initCombPMoveConj() {
|
|
|
651
679
|
}
|
|
652
680
|
}
|
|
653
681
|
function initEPermMove() {
|
|
654
|
-
var c
|
|
682
|
+
var c;
|
|
683
|
+
var d;
|
|
684
|
+
var i;
|
|
685
|
+
var j;
|
|
655
686
|
c = new CubieCube();
|
|
656
687
|
d = new CubieCube();
|
|
657
688
|
for (i = 0; i < 2768; i++) {
|
|
@@ -663,7 +694,10 @@ function initEPermMove() {
|
|
|
663
694
|
}
|
|
664
695
|
}
|
|
665
696
|
function initFlipMove() {
|
|
666
|
-
var c
|
|
697
|
+
var c;
|
|
698
|
+
var d;
|
|
699
|
+
var i;
|
|
700
|
+
var j;
|
|
667
701
|
c = new CubieCube();
|
|
668
702
|
d = new CubieCube();
|
|
669
703
|
for (i = 0; i < 336; i++) {
|
|
@@ -675,7 +709,11 @@ function initFlipMove() {
|
|
|
675
709
|
}
|
|
676
710
|
}
|
|
677
711
|
function initMPermMoveConj() {
|
|
678
|
-
var c
|
|
712
|
+
var c;
|
|
713
|
+
var d;
|
|
714
|
+
var i;
|
|
715
|
+
var j;
|
|
716
|
+
var j0;
|
|
679
717
|
c = new CubieCube();
|
|
680
718
|
d = new CubieCube();
|
|
681
719
|
for (i = 0; i < 24; i++) {
|
|
@@ -695,22 +733,57 @@ function initMPermMoveConj() {
|
|
|
695
733
|
}
|
|
696
734
|
}
|
|
697
735
|
function initRawSymPrun(PrunTable, RawMove, RawConj, SymMove, SymState, PrunFlag, fullInit) {
|
|
698
|
-
var INV_DEPTH
|
|
736
|
+
var INV_DEPTH;
|
|
737
|
+
var ISTFP;
|
|
738
|
+
var IS_PHASE2;
|
|
739
|
+
var MAX_DEPTH;
|
|
740
|
+
var MIN_DEPTH;
|
|
741
|
+
var NEXT_AXIS_MAGIC;
|
|
742
|
+
var N_MOVES;
|
|
743
|
+
var N_RAW;
|
|
744
|
+
var N_SIZE;
|
|
745
|
+
var SEARCH_DEPTH;
|
|
746
|
+
var SYM_E2C_MAGIC;
|
|
747
|
+
var SYM_MASK;
|
|
748
|
+
var SYM_SHIFT;
|
|
749
|
+
var check;
|
|
750
|
+
var depth;
|
|
751
|
+
var flip;
|
|
752
|
+
var fsym;
|
|
753
|
+
var i;
|
|
754
|
+
var i0;
|
|
755
|
+
var idx;
|
|
756
|
+
var idxx;
|
|
757
|
+
var inv;
|
|
758
|
+
var j;
|
|
759
|
+
var m;
|
|
760
|
+
var mask;
|
|
761
|
+
var prun;
|
|
762
|
+
var raw;
|
|
763
|
+
var rawx;
|
|
764
|
+
var selArrMask;
|
|
765
|
+
var select;
|
|
766
|
+
var sym;
|
|
767
|
+
var symState;
|
|
768
|
+
var symx;
|
|
769
|
+
var val;
|
|
770
|
+
var val0;
|
|
771
|
+
var xorVal;
|
|
699
772
|
SYM_SHIFT = PrunFlag & 15;
|
|
700
|
-
SYM_E2C_MAGIC = (PrunFlag >> 4 & 1)
|
|
701
|
-
IS_PHASE2 = (PrunFlag >> 5 & 1)
|
|
773
|
+
SYM_E2C_MAGIC = (PrunFlag >> 4 & 1) === 1 ? $intern_28 : 0;
|
|
774
|
+
IS_PHASE2 = (PrunFlag >> 5 & 1) === 1;
|
|
702
775
|
INV_DEPTH = PrunFlag >> 8 & 15;
|
|
703
776
|
MAX_DEPTH = PrunFlag >> 12 & 15;
|
|
704
777
|
MIN_DEPTH = PrunFlag >> 16 & 15;
|
|
705
778
|
SEARCH_DEPTH = fullInit ? MAX_DEPTH : MIN_DEPTH;
|
|
706
779
|
SYM_MASK = (1 << SYM_SHIFT) - 1;
|
|
707
|
-
ISTFP = RawMove
|
|
780
|
+
ISTFP = RawMove === null;
|
|
708
781
|
N_RAW = ISTFP ? 2048 : RawMove.length;
|
|
709
782
|
N_SIZE = N_RAW * SymMove.length;
|
|
710
783
|
N_MOVES = IS_PHASE2 ? 10 : 18;
|
|
711
|
-
NEXT_AXIS_MAGIC = N_MOVES
|
|
784
|
+
NEXT_AXIS_MAGIC = N_MOVES === 10 ? 66 : 599186;
|
|
712
785
|
depth = (PrunTable[N_SIZE >> 3] >> (N_SIZE << 2) & 15) - 1;
|
|
713
|
-
if (depth
|
|
786
|
+
if (depth === -1) {
|
|
714
787
|
for (i = 0; i < ~~(N_SIZE / 8) + 1; i++) {
|
|
715
788
|
PrunTable[i] = $intern_29;
|
|
716
789
|
}
|
|
@@ -732,14 +805,14 @@ function initRawSymPrun(PrunTable, RawMove, RawConj, SymMove, SymState, PrunFlag
|
|
|
732
805
|
xorVal = depth ^ depth + 1;
|
|
733
806
|
val = 0;
|
|
734
807
|
for (i = 0; i < N_SIZE; ++i, val >>= 4) {
|
|
735
|
-
if ((i & 7)
|
|
808
|
+
if ((i & 7) === 0) {
|
|
736
809
|
val = PrunTable[i >> 3];
|
|
737
|
-
if (((val ^ selArrMask) - $intern_29 & ~(val ^ selArrMask) & -2004318072)
|
|
810
|
+
if (((val ^ selArrMask) - $intern_29 & ~(val ^ selArrMask) & -2004318072) === 0) {
|
|
738
811
|
i += 7;
|
|
739
812
|
continue;
|
|
740
813
|
}
|
|
741
814
|
}
|
|
742
|
-
if ((val & 15)
|
|
815
|
+
if ((val & 15) !== select) {
|
|
743
816
|
continue;
|
|
744
817
|
}
|
|
745
818
|
raw = i % N_RAW;
|
|
@@ -757,7 +830,7 @@ function initRawSymPrun(PrunTable, RawMove, RawConj, SymMove, SymState, PrunFlag
|
|
|
757
830
|
symx >>= SYM_SHIFT;
|
|
758
831
|
idx = symx * N_RAW + rawx;
|
|
759
832
|
prun = PrunTable[idx >> 3] >> (idx << 2) & 15;
|
|
760
|
-
if (prun
|
|
833
|
+
if (prun !== check) {
|
|
761
834
|
prun < depth - 1 && (m += NEXT_AXIS_MAGIC >> m & 3);
|
|
762
835
|
continue;
|
|
763
836
|
}
|
|
@@ -766,13 +839,13 @@ function initRawSymPrun(PrunTable, RawMove, RawConj, SymMove, SymState, PrunFlag
|
|
|
766
839
|
break;
|
|
767
840
|
}
|
|
768
841
|
PrunTable[idx >> 3] ^= xorVal << (idx << 2);
|
|
769
|
-
for (j = 1, symState = SymState[symx]; (symState >>= 1)
|
|
770
|
-
if ((symState & 1)
|
|
842
|
+
for (j = 1, symState = SymState[symx]; (symState >>= 1) !== 0; j++) {
|
|
843
|
+
if ((symState & 1) !== 1) {
|
|
771
844
|
continue;
|
|
772
845
|
}
|
|
773
846
|
idxx = symx * N_RAW;
|
|
774
847
|
ISTFP ? idxx += ($clinit_CubieCube(), FlipS2RF)[FlipR2S[rawx] ^ j] : idxx += RawConj[rawx][j ^ SYM_E2C_MAGIC >> (j << 1) & 3];
|
|
775
|
-
if ((PrunTable[idxx >> 3] >> (idxx << 2) & 15)
|
|
848
|
+
if ((PrunTable[idxx >> 3] >> (idxx << 2) & 15) === check) {
|
|
776
849
|
PrunTable[idxx >> 3] ^= xorVal << (idxx << 2);
|
|
777
850
|
}
|
|
778
851
|
}
|
|
@@ -781,7 +854,10 @@ function initRawSymPrun(PrunTable, RawMove, RawConj, SymMove, SymState, PrunFlag
|
|
|
781
854
|
}
|
|
782
855
|
}
|
|
783
856
|
function initTwistMove() {
|
|
784
|
-
var c
|
|
857
|
+
var c;
|
|
858
|
+
var d;
|
|
859
|
+
var i;
|
|
860
|
+
var j;
|
|
785
861
|
c = new CubieCube();
|
|
786
862
|
d = new CubieCube();
|
|
787
863
|
for (i = 0; i < 324; i++) {
|
|
@@ -793,7 +869,14 @@ function initTwistMove() {
|
|
|
793
869
|
}
|
|
794
870
|
}
|
|
795
871
|
function initUDSliceMoveConj() {
|
|
796
|
-
var c
|
|
872
|
+
var c;
|
|
873
|
+
var d;
|
|
874
|
+
var i;
|
|
875
|
+
var i0;
|
|
876
|
+
var j;
|
|
877
|
+
var j0;
|
|
878
|
+
var k;
|
|
879
|
+
var udslice;
|
|
797
880
|
c = new CubieCube();
|
|
798
881
|
d = new CubieCube();
|
|
799
882
|
for (i0 = 0; i0 < 495; i0++) {
|
|
@@ -916,74 +999,143 @@ function $clinit_CubieCube() {
|
|
|
916
999
|
FlipS2RF = initDim(C_classLit, $intern_26, 0, 2688, 7, 1);
|
|
917
1000
|
urf1 = new CubieCube_0(2531, 1373, 67026819, 1367);
|
|
918
1001
|
urf2 = new CubieCube_0(2089, 1906, 322752913, 2040);
|
|
919
|
-
urfMove = initValues(
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
0,
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1002
|
+
urfMove = initValues(getClassLiteralForArray(
|
|
1003
|
+
B_classLit,
|
|
1004
|
+
2
|
|
1005
|
+
), $intern_3, 10, 0, [
|
|
1006
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
1007
|
+
0,
|
|
1008
|
+
1,
|
|
1009
|
+
2,
|
|
1010
|
+
3,
|
|
1011
|
+
4,
|
|
1012
|
+
5,
|
|
1013
|
+
6,
|
|
1014
|
+
7,
|
|
1015
|
+
8,
|
|
1016
|
+
9,
|
|
1017
|
+
10,
|
|
1018
|
+
11,
|
|
1019
|
+
12,
|
|
1020
|
+
13,
|
|
1021
|
+
14,
|
|
1022
|
+
15,
|
|
1023
|
+
16,
|
|
1024
|
+
17
|
|
1025
|
+
]),
|
|
1026
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
1027
|
+
6,
|
|
1028
|
+
7,
|
|
1029
|
+
8,
|
|
1030
|
+
0,
|
|
1031
|
+
1,
|
|
1032
|
+
2,
|
|
1033
|
+
3,
|
|
1034
|
+
4,
|
|
1035
|
+
5,
|
|
1036
|
+
15,
|
|
1037
|
+
16,
|
|
1038
|
+
17,
|
|
1039
|
+
9,
|
|
1040
|
+
10,
|
|
1041
|
+
11,
|
|
1042
|
+
12,
|
|
1043
|
+
13,
|
|
1044
|
+
14
|
|
1045
|
+
]),
|
|
1046
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
1047
|
+
3,
|
|
1048
|
+
4,
|
|
1049
|
+
5,
|
|
1050
|
+
6,
|
|
1051
|
+
7,
|
|
1052
|
+
8,
|
|
1053
|
+
0,
|
|
1054
|
+
1,
|
|
1055
|
+
2,
|
|
1056
|
+
12,
|
|
1057
|
+
13,
|
|
1058
|
+
14,
|
|
1059
|
+
15,
|
|
1060
|
+
16,
|
|
1061
|
+
17,
|
|
1062
|
+
9,
|
|
1063
|
+
10,
|
|
1064
|
+
11
|
|
1065
|
+
]),
|
|
1066
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
1067
|
+
2,
|
|
1068
|
+
1,
|
|
1069
|
+
0,
|
|
1070
|
+
5,
|
|
1071
|
+
4,
|
|
1072
|
+
3,
|
|
1073
|
+
8,
|
|
1074
|
+
7,
|
|
1075
|
+
6,
|
|
1076
|
+
11,
|
|
1077
|
+
10,
|
|
1078
|
+
9,
|
|
1079
|
+
14,
|
|
1080
|
+
13,
|
|
1081
|
+
12,
|
|
1082
|
+
17,
|
|
1083
|
+
16,
|
|
1084
|
+
15
|
|
1085
|
+
]),
|
|
1086
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
1087
|
+
8,
|
|
1088
|
+
7,
|
|
1089
|
+
6,
|
|
1090
|
+
2,
|
|
1091
|
+
1,
|
|
1092
|
+
0,
|
|
1093
|
+
5,
|
|
1094
|
+
4,
|
|
1095
|
+
3,
|
|
1096
|
+
17,
|
|
1097
|
+
16,
|
|
1098
|
+
15,
|
|
1099
|
+
11,
|
|
1100
|
+
10,
|
|
1101
|
+
9,
|
|
1102
|
+
14,
|
|
1103
|
+
13,
|
|
1104
|
+
12
|
|
1105
|
+
]),
|
|
1106
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
1107
|
+
5,
|
|
1108
|
+
4,
|
|
1109
|
+
3,
|
|
1110
|
+
8,
|
|
1111
|
+
7,
|
|
1112
|
+
6,
|
|
1113
|
+
2,
|
|
1114
|
+
1,
|
|
1115
|
+
0,
|
|
1116
|
+
14,
|
|
1117
|
+
13,
|
|
1118
|
+
12,
|
|
1119
|
+
17,
|
|
1120
|
+
16,
|
|
1121
|
+
15,
|
|
1122
|
+
11,
|
|
1123
|
+
10,
|
|
1124
|
+
9
|
|
1125
|
+
])
|
|
1126
|
+
]);
|
|
969
1127
|
initMove();
|
|
970
1128
|
initSym();
|
|
971
1129
|
}
|
|
972
1130
|
function $$init(this$static) {
|
|
973
|
-
this$static.ca = initValues(
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
982
|
-
$intern_30,
|
|
983
|
-
0,
|
|
984
|
-
7,
|
|
985
|
-
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22]
|
|
986
|
-
);
|
|
1131
|
+
this$static.ca = initValues(getClassLiteralForArray(
|
|
1132
|
+
B_classLit,
|
|
1133
|
+
1
|
|
1134
|
+
), $intern_30, 0, 7, [0, 1, 2, 3, 4, 5, 6, 7]);
|
|
1135
|
+
this$static.ea = initValues(getClassLiteralForArray(
|
|
1136
|
+
B_classLit,
|
|
1137
|
+
1
|
|
1138
|
+
), $intern_30, 0, 7, [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22]);
|
|
987
1139
|
}
|
|
988
1140
|
function $URFConjugate(this$static) {
|
|
989
1141
|
!this$static.temps && (this$static.temps = new CubieCube());
|
|
@@ -993,7 +1145,8 @@ function $URFConjugate(this$static) {
|
|
|
993
1145
|
EdgeMult(this$static.temps, urf1, this$static);
|
|
994
1146
|
}
|
|
995
1147
|
function $copy(this$static, c) {
|
|
996
|
-
var i
|
|
1148
|
+
var i;
|
|
1149
|
+
var i0;
|
|
997
1150
|
for (i0 = 0; i0 < 8; i0++) {
|
|
998
1151
|
this$static.ca[i0] = c.ca[i0];
|
|
999
1152
|
}
|
|
@@ -1008,7 +1161,8 @@ function $getEPermSym(this$static) {
|
|
|
1008
1161
|
return EPermR2S[getNPerm(this$static.ea, 8, true)];
|
|
1009
1162
|
}
|
|
1010
1163
|
function $getFlip(this$static) {
|
|
1011
|
-
var i
|
|
1164
|
+
var i;
|
|
1165
|
+
var idx;
|
|
1012
1166
|
idx = 0;
|
|
1013
1167
|
for (i = 0; i < 11; i++) {
|
|
1014
1168
|
idx = idx << 1 | this$static.ea[i] & 1;
|
|
@@ -1016,7 +1170,8 @@ function $getFlip(this$static) {
|
|
|
1016
1170
|
return idx;
|
|
1017
1171
|
}
|
|
1018
1172
|
function $getTwist(this$static) {
|
|
1019
|
-
var i
|
|
1173
|
+
var i;
|
|
1174
|
+
var idx;
|
|
1020
1175
|
idx = 0;
|
|
1021
1176
|
for (i = 0; i < 7; i++) {
|
|
1022
1177
|
idx += (idx << 1) + (this$static.ca[i] >> 3);
|
|
@@ -1024,7 +1179,8 @@ function $getTwist(this$static) {
|
|
|
1024
1179
|
return idx;
|
|
1025
1180
|
}
|
|
1026
1181
|
function $invCubieCube(this$static) {
|
|
1027
|
-
var corn
|
|
1182
|
+
var corn;
|
|
1183
|
+
var edge;
|
|
1028
1184
|
!this$static.temps && (this$static.temps = new CubieCube());
|
|
1029
1185
|
for (edge = 0; edge < 12; edge++) {
|
|
1030
1186
|
this$static.temps.ea[this$static.ea[edge] >> 1] = (edge << 1 | this$static.ea[edge] & 1) << 24 >> 24;
|
|
@@ -1035,14 +1191,20 @@ function $invCubieCube(this$static) {
|
|
|
1035
1191
|
$copy(this$static, this$static.temps);
|
|
1036
1192
|
}
|
|
1037
1193
|
function $selfSymmetry(this$static) {
|
|
1038
|
-
var c
|
|
1194
|
+
var c;
|
|
1195
|
+
var cperm;
|
|
1196
|
+
var cpermx;
|
|
1197
|
+
var d;
|
|
1198
|
+
var i;
|
|
1199
|
+
var sym;
|
|
1200
|
+
var urfInv;
|
|
1039
1201
|
c = new CubieCube_1(this$static);
|
|
1040
1202
|
d = new CubieCube();
|
|
1041
1203
|
cperm = ESym2CSym(EPermR2S[getNPerm(c.ca, 8, false)]) >> 4;
|
|
1042
1204
|
sym = { l: 0, m: 0, h: 0 };
|
|
1043
1205
|
for (urfInv = 0; urfInv < 6; urfInv++) {
|
|
1044
1206
|
cpermx = ESym2CSym(EPermR2S[getNPerm(c.ca, 8, false)]) >> 4;
|
|
1045
|
-
if (cperm
|
|
1207
|
+
if (cperm === cpermx) {
|
|
1046
1208
|
for (i = 0; i < 16; i++) {
|
|
1047
1209
|
CornConjugate(c, SymMultInv[0][i], d);
|
|
1048
1210
|
if (equals_7(d.ca, this$static.ca)) {
|
|
@@ -1058,7 +1220,7 @@ function $selfSymmetry(this$static) {
|
|
|
1058
1220
|
}
|
|
1059
1221
|
}
|
|
1060
1222
|
$URFConjugate(c);
|
|
1061
|
-
urfInv % 3
|
|
1223
|
+
urfInv % 3 === 2 && $invCubieCube(c);
|
|
1062
1224
|
}
|
|
1063
1225
|
return sym;
|
|
1064
1226
|
}
|
|
@@ -1069,7 +1231,9 @@ function $setEPerm(this$static, idx) {
|
|
|
1069
1231
|
setNPerm(this$static.ea, idx, 8, true);
|
|
1070
1232
|
}
|
|
1071
1233
|
function $setFlip(this$static, idx) {
|
|
1072
|
-
var i
|
|
1234
|
+
var i;
|
|
1235
|
+
var parity;
|
|
1236
|
+
var val;
|
|
1073
1237
|
parity = 0;
|
|
1074
1238
|
for (i = 10; i >= 0; --i, idx >>= 1) {
|
|
1075
1239
|
parity ^= val = idx & 1;
|
|
@@ -1078,7 +1242,9 @@ function $setFlip(this$static, idx) {
|
|
|
1078
1242
|
this$static.ea[11] = (this$static.ea[11] & -2 | parity) << 24 >> 24;
|
|
1079
1243
|
}
|
|
1080
1244
|
function $setTwist(this$static, idx) {
|
|
1081
|
-
var i
|
|
1245
|
+
var i;
|
|
1246
|
+
var twst;
|
|
1247
|
+
var val;
|
|
1082
1248
|
twst = 15;
|
|
1083
1249
|
for (i = 6; i >= 0; --i, idx = ~~(idx / 3)) {
|
|
1084
1250
|
twst -= val = idx % 3;
|
|
@@ -1087,17 +1253,21 @@ function $setTwist(this$static, idx) {
|
|
|
1087
1253
|
this$static.ca[7] = (this$static.ca[7] & 7 | twst % 3 << 3) << 24 >> 24;
|
|
1088
1254
|
}
|
|
1089
1255
|
function $verify(this$static) {
|
|
1090
|
-
var c
|
|
1256
|
+
var c;
|
|
1257
|
+
var cornMask;
|
|
1258
|
+
var e;
|
|
1259
|
+
var edgeMask;
|
|
1260
|
+
var sum;
|
|
1091
1261
|
sum = 0;
|
|
1092
1262
|
edgeMask = 0;
|
|
1093
1263
|
for (e = 0; e < 12; e++) {
|
|
1094
1264
|
edgeMask |= 1 << (this$static.ea[e] >> 1);
|
|
1095
1265
|
sum ^= this$static.ea[e] & 1;
|
|
1096
1266
|
}
|
|
1097
|
-
if (edgeMask
|
|
1267
|
+
if (edgeMask !== 4095) {
|
|
1098
1268
|
return -2;
|
|
1099
1269
|
}
|
|
1100
|
-
if (sum
|
|
1270
|
+
if (sum !== 0) {
|
|
1101
1271
|
return -3;
|
|
1102
1272
|
}
|
|
1103
1273
|
cornMask = 0;
|
|
@@ -1106,20 +1276,25 @@ function $verify(this$static) {
|
|
|
1106
1276
|
cornMask |= 1 << (this$static.ca[c] & 7);
|
|
1107
1277
|
sum += this$static.ca[c] >> 3;
|
|
1108
1278
|
}
|
|
1109
|
-
if (cornMask
|
|
1279
|
+
if (cornMask !== 255) {
|
|
1110
1280
|
return -4;
|
|
1111
1281
|
}
|
|
1112
|
-
if (sum % 3
|
|
1282
|
+
if (sum % 3 !== 0) {
|
|
1113
1283
|
return -5;
|
|
1114
1284
|
}
|
|
1115
|
-
if ((getNParity(getNPerm(this$static.ea, 12, true), 12) ^ getNParity(getNPerm(this$static.ca, 8, false), 8))
|
|
1285
|
+
if ((getNParity(getNPerm(this$static.ea, 12, true), 12) ^ getNParity(getNPerm(this$static.ca, 8, false), 8)) !== 0) {
|
|
1116
1286
|
return -6;
|
|
1117
1287
|
}
|
|
1118
1288
|
return 0;
|
|
1119
1289
|
}
|
|
1120
1290
|
function CornConjugate(a, idx, b) {
|
|
1121
1291
|
$clinit_CubieCube();
|
|
1122
|
-
var corn
|
|
1292
|
+
var corn;
|
|
1293
|
+
var ori;
|
|
1294
|
+
var oriA;
|
|
1295
|
+
var oriB;
|
|
1296
|
+
var s;
|
|
1297
|
+
var sinv;
|
|
1123
1298
|
sinv = CubeSym[SymMultInv[0][idx]];
|
|
1124
1299
|
s = CubeSym[idx];
|
|
1125
1300
|
for (corn = 0; corn < 8; corn++) {
|
|
@@ -1131,7 +1306,9 @@ function CornConjugate(a, idx, b) {
|
|
|
1131
1306
|
}
|
|
1132
1307
|
function CornMult(a, b, prod) {
|
|
1133
1308
|
$clinit_CubieCube();
|
|
1134
|
-
var corn
|
|
1309
|
+
var corn;
|
|
1310
|
+
var oriA;
|
|
1311
|
+
var oriB;
|
|
1135
1312
|
for (corn = 0; corn < 8; corn++) {
|
|
1136
1313
|
oriA = a.ca[b.ca[corn] & 7] >> 3;
|
|
1137
1314
|
oriB = b.ca[corn] >> 3;
|
|
@@ -1139,12 +1316,15 @@ function CornMult(a, b, prod) {
|
|
|
1139
1316
|
}
|
|
1140
1317
|
}
|
|
1141
1318
|
function CornMultFull(a, b, prod) {
|
|
1142
|
-
var corn
|
|
1319
|
+
var corn;
|
|
1320
|
+
var ori;
|
|
1321
|
+
var oriA;
|
|
1322
|
+
var oriB;
|
|
1143
1323
|
for (corn = 0; corn < 8; corn++) {
|
|
1144
1324
|
oriA = a.ca[b.ca[corn] & 7] >> 3;
|
|
1145
1325
|
oriB = b.ca[corn] >> 3;
|
|
1146
1326
|
ori = oriA + (oriA < 3 ? oriB : 6 - oriB);
|
|
1147
|
-
ori = ori % 3 + (oriA < 3
|
|
1327
|
+
ori = ori % 3 + (oriA < 3 === oriB < 3 ? 0 : 3);
|
|
1148
1328
|
prod.ca[corn] = (a.ca[b.ca[corn] & 7] & 7 | ori << 3) << 24 >> 24;
|
|
1149
1329
|
}
|
|
1150
1330
|
}
|
|
@@ -1169,7 +1349,9 @@ function ESym2CSym(idx) {
|
|
|
1169
1349
|
}
|
|
1170
1350
|
function EdgeConjugate(a, idx, b) {
|
|
1171
1351
|
$clinit_CubieCube();
|
|
1172
|
-
var ed
|
|
1352
|
+
var ed;
|
|
1353
|
+
var s;
|
|
1354
|
+
var sinv;
|
|
1173
1355
|
sinv = CubeSym[SymMultInv[0][idx]];
|
|
1174
1356
|
s = CubeSym[idx];
|
|
1175
1357
|
for (ed = 0; ed < 12; ed++) {
|
|
@@ -1195,7 +1377,8 @@ function getSkipMoves() {
|
|
|
1195
1377
|
return 0;
|
|
1196
1378
|
}
|
|
1197
1379
|
function initMove() {
|
|
1198
|
-
var a
|
|
1380
|
+
var a;
|
|
1381
|
+
var p;
|
|
1199
1382
|
moveCube[0] = new CubieCube_0(15120, 0, 119750400, 0);
|
|
1200
1383
|
moveCube[3] = new CubieCube_0(21021, 1494, 323403417, 0);
|
|
1201
1384
|
moveCube[6] = new CubieCube_0(8064, 1236, 29441808, 550);
|
|
@@ -1212,7 +1395,9 @@ function initMove() {
|
|
|
1212
1395
|
}
|
|
1213
1396
|
function initPermSym2Raw() {
|
|
1214
1397
|
$clinit_CubieCube();
|
|
1215
|
-
var cc
|
|
1398
|
+
var cc;
|
|
1399
|
+
var i;
|
|
1400
|
+
var i0;
|
|
1216
1401
|
initSym2Raw(
|
|
1217
1402
|
40320,
|
|
1218
1403
|
EPermS2R,
|
|
@@ -1234,7 +1419,22 @@ function initPermSym2Raw() {
|
|
|
1234
1419
|
}
|
|
1235
1420
|
}
|
|
1236
1421
|
function initSym() {
|
|
1237
|
-
var c
|
|
1422
|
+
var c;
|
|
1423
|
+
var d;
|
|
1424
|
+
var f2;
|
|
1425
|
+
var i;
|
|
1426
|
+
var i0;
|
|
1427
|
+
var i1;
|
|
1428
|
+
var i2;
|
|
1429
|
+
var j;
|
|
1430
|
+
var j0;
|
|
1431
|
+
var j1;
|
|
1432
|
+
var k;
|
|
1433
|
+
var lr2;
|
|
1434
|
+
var m;
|
|
1435
|
+
var s;
|
|
1436
|
+
var t;
|
|
1437
|
+
var u4;
|
|
1238
1438
|
c = new CubieCube();
|
|
1239
1439
|
d = new CubieCube();
|
|
1240
1440
|
f2 = new CubieCube_0(28783, 0, 259268407, 0);
|
|
@@ -1250,14 +1450,14 @@ function initSym() {
|
|
|
1250
1450
|
t = d;
|
|
1251
1451
|
d = c;
|
|
1252
1452
|
c = t;
|
|
1253
|
-
if (i1 % 4
|
|
1453
|
+
if (i1 % 4 === 3) {
|
|
1254
1454
|
CornMultFull(t, lr2, d);
|
|
1255
1455
|
EdgeMult(t, lr2, d);
|
|
1256
1456
|
t = d;
|
|
1257
1457
|
d = c;
|
|
1258
1458
|
c = t;
|
|
1259
1459
|
}
|
|
1260
|
-
if (i1 % 8
|
|
1460
|
+
if (i1 % 8 === 7) {
|
|
1261
1461
|
CornMultFull(t, f2, d);
|
|
1262
1462
|
EdgeMult(t, f2, d);
|
|
1263
1463
|
t = d;
|
|
@@ -1287,7 +1487,7 @@ function initSym() {
|
|
|
1287
1487
|
break;
|
|
1288
1488
|
}
|
|
1289
1489
|
}
|
|
1290
|
-
s % 2
|
|
1490
|
+
s % 2 === 0 && (Sym8Move[j1 << 3 | s >> 1] = SymMove_0[s][j1]);
|
|
1291
1491
|
}
|
|
1292
1492
|
}
|
|
1293
1493
|
for (i = 0; i < 18; i++) {
|
|
@@ -1295,47 +1495,59 @@ function initSym() {
|
|
|
1295
1495
|
j = i;
|
|
1296
1496
|
for (s = 0; s < 48; s++) {
|
|
1297
1497
|
SymMove_0[s % 16][j] < i && (firstMoveSym[s] |= 1 << i);
|
|
1298
|
-
s % 16
|
|
1498
|
+
s % 16 === 15 && (j = urfMove[2][j]);
|
|
1299
1499
|
}
|
|
1300
1500
|
}
|
|
1301
1501
|
}
|
|
1302
1502
|
function initSym2Raw(N_RAW, Sym2Raw, Raw2Sym, SymState, coord) {
|
|
1303
1503
|
$clinit_CubieCube();
|
|
1304
|
-
var c
|
|
1504
|
+
var c;
|
|
1505
|
+
var count;
|
|
1506
|
+
var d;
|
|
1507
|
+
var i;
|
|
1508
|
+
var idx;
|
|
1509
|
+
var isEdge;
|
|
1510
|
+
var s;
|
|
1511
|
+
var symIdx;
|
|
1512
|
+
var sym_inc;
|
|
1305
1513
|
c = new CubieCube();
|
|
1306
1514
|
d = new CubieCube();
|
|
1307
1515
|
count = 0;
|
|
1308
1516
|
idx = 0;
|
|
1309
1517
|
sym_inc = coord >= 2 ? 1 : 2;
|
|
1310
|
-
isEdge = coord
|
|
1518
|
+
isEdge = coord !== 1;
|
|
1311
1519
|
for (i = 0; i < N_RAW; i++) {
|
|
1312
|
-
if (Raw2Sym[i]
|
|
1520
|
+
if (Raw2Sym[i] !== 0) {
|
|
1313
1521
|
continue;
|
|
1314
1522
|
}
|
|
1315
1523
|
switch (coord) {
|
|
1316
|
-
case 0:
|
|
1524
|
+
case 0: {
|
|
1317
1525
|
$setFlip(c, i);
|
|
1318
1526
|
break;
|
|
1319
|
-
|
|
1527
|
+
}
|
|
1528
|
+
case 1: {
|
|
1320
1529
|
$setTwist(c, i);
|
|
1321
1530
|
break;
|
|
1531
|
+
}
|
|
1322
1532
|
case 2:
|
|
1323
1533
|
setNPerm(c.ea, i, 8, true);
|
|
1324
1534
|
}
|
|
1325
1535
|
for (s = 0; s < 16; s += sym_inc) {
|
|
1326
1536
|
isEdge ? EdgeConjugate(c, s, d) : CornConjugate(c, s, d);
|
|
1327
1537
|
switch (coord) {
|
|
1328
|
-
case 0:
|
|
1538
|
+
case 0: {
|
|
1329
1539
|
idx = $getFlip(d);
|
|
1330
1540
|
break;
|
|
1331
|
-
|
|
1541
|
+
}
|
|
1542
|
+
case 1: {
|
|
1332
1543
|
idx = $getTwist(d);
|
|
1333
1544
|
break;
|
|
1545
|
+
}
|
|
1334
1546
|
case 2:
|
|
1335
1547
|
idx = getNPerm(d.ea, 8, true);
|
|
1336
1548
|
}
|
|
1337
|
-
coord
|
|
1338
|
-
idx
|
|
1549
|
+
coord === 0 && (FlipS2RF[count << 3 | s >> 1] = idx & $intern_20);
|
|
1550
|
+
idx === i && (SymState[count] = (SymState[count] | 1 << ~~(s / sym_inc)) & $intern_20);
|
|
1339
1551
|
symIdx = ~~((count << 4 | s) / sym_inc);
|
|
1340
1552
|
Raw2Sym[idx] = symIdx & $intern_20;
|
|
1341
1553
|
}
|
|
@@ -1374,7 +1586,11 @@ var Lorg_cubing_min2phase_client_CubieCube_2_classLit = createForClass(
|
|
|
1374
1586
|
7
|
|
1375
1587
|
);
|
|
1376
1588
|
function $initPhase2(this$static, p2corn, p2csym, p2edge, p2esym, p2mid, edgei, corni) {
|
|
1377
|
-
var depth2
|
|
1589
|
+
var depth2;
|
|
1590
|
+
var i;
|
|
1591
|
+
var i0;
|
|
1592
|
+
var prun;
|
|
1593
|
+
var ret;
|
|
1378
1594
|
prun = max_0(
|
|
1379
1595
|
getPruning(
|
|
1380
1596
|
($clinit_CoordCube(), EPermCCombPPrun),
|
|
@@ -1423,7 +1639,7 @@ function $initPhase2(this$static, p2corn, p2csym, p2edge, p2esym, p2mid, edgei,
|
|
|
1423
1639
|
}
|
|
1424
1640
|
this$static.solLen = this$static.solution.length_0;
|
|
1425
1641
|
}
|
|
1426
|
-
if (depth2
|
|
1642
|
+
if (depth2 !== this$static.maxDep2) {
|
|
1427
1643
|
this$static.maxDep2 = min_0(
|
|
1428
1644
|
MAX_DEPTH2,
|
|
1429
1645
|
this$static.solLen - this$static.length1 - 1
|
|
@@ -1433,7 +1649,21 @@ function $initPhase2(this$static, p2corn, p2csym, p2edge, p2esym, p2mid, edgei,
|
|
|
1433
1649
|
return 1;
|
|
1434
1650
|
}
|
|
1435
1651
|
function $initPhase2Pre(this$static) {
|
|
1436
|
-
var corni
|
|
1652
|
+
var corni;
|
|
1653
|
+
var edgei;
|
|
1654
|
+
var i;
|
|
1655
|
+
var lastMove;
|
|
1656
|
+
var lastPre;
|
|
1657
|
+
var m;
|
|
1658
|
+
var p2corn;
|
|
1659
|
+
var p2csym;
|
|
1660
|
+
var p2edge;
|
|
1661
|
+
var p2esym;
|
|
1662
|
+
var p2mid;
|
|
1663
|
+
var p2switch;
|
|
1664
|
+
var p2switchMask;
|
|
1665
|
+
var p2switchMax;
|
|
1666
|
+
var ret;
|
|
1437
1667
|
this$static.isRec = false;
|
|
1438
1668
|
if (gte(
|
|
1439
1669
|
this$static.probe,
|
|
@@ -1464,12 +1694,12 @@ function $initPhase2Pre(this$static) {
|
|
|
1464
1694
|
p2mid = getNPerm(this$static.phase1Cubie[this$static.depth1].ea, 12, true) % 24;
|
|
1465
1695
|
edgei = getPermSymInv(p2edge, p2esym, false);
|
|
1466
1696
|
corni = getPermSymInv(p2corn, p2csym, true);
|
|
1467
|
-
lastMove = this$static.depth1
|
|
1468
|
-
lastPre = this$static.preMoveLen
|
|
1697
|
+
lastMove = this$static.depth1 === 0 ? -1 : this$static.move[this$static.depth1 - 1];
|
|
1698
|
+
lastPre = this$static.preMoveLen === 0 ? -1 : this$static.preMoves[this$static.preMoveLen - 1];
|
|
1469
1699
|
ret = 0;
|
|
1470
|
-
p2switchMax = (this$static.preMoveLen
|
|
1700
|
+
p2switchMax = (this$static.preMoveLen === 0 ? 1 : 2) * (this$static.depth1 === 0 ? 1 : 2);
|
|
1471
1701
|
for (p2switch = 0, p2switchMask = (1 << p2switchMax) - 1; p2switch < p2switchMax; p2switch++) {
|
|
1472
|
-
if ((p2switchMask >> p2switch & 1)
|
|
1702
|
+
if ((p2switchMask >> p2switch & 1) !== 0) {
|
|
1473
1703
|
p2switchMask &= ~(1 << p2switch);
|
|
1474
1704
|
ret = $initPhase2(
|
|
1475
1705
|
this$static,
|
|
@@ -1481,15 +1711,16 @@ function $initPhase2Pre(this$static) {
|
|
|
1481
1711
|
edgei,
|
|
1482
1712
|
corni
|
|
1483
1713
|
);
|
|
1484
|
-
if (ret
|
|
1714
|
+
if (ret === 0 || ret > 2) {
|
|
1485
1715
|
break;
|
|
1486
|
-
} else
|
|
1487
|
-
ret
|
|
1716
|
+
} else {
|
|
1717
|
+
ret === 2 && (p2switchMask &= 4 << p2switch);
|
|
1718
|
+
}
|
|
1488
1719
|
}
|
|
1489
|
-
if (p2switchMask
|
|
1720
|
+
if (p2switchMask === 0) {
|
|
1490
1721
|
break;
|
|
1491
1722
|
}
|
|
1492
|
-
if ((p2switch & 1)
|
|
1723
|
+
if ((p2switch & 1) === 0 && this$static.depth1 > 0) {
|
|
1493
1724
|
m = ($clinit_Util(), std2ud)[~~(lastMove / 3) * 3 + 1];
|
|
1494
1725
|
this$static.move[this$static.depth1 - 1] = ud2std[m] * 2 - this$static.move[this$static.depth1 - 1];
|
|
1495
1726
|
p2mid = ($clinit_CoordCube(), MPermMove)[p2mid][m];
|
|
@@ -1519,24 +1750,27 @@ function $initPhase2Pre(this$static) {
|
|
|
1519
1750
|
}
|
|
1520
1751
|
this$static.depth1 > 0 && (this$static.move[this$static.depth1 - 1] = lastMove);
|
|
1521
1752
|
this$static.preMoveLen > 0 && (this$static.preMoves[this$static.preMoveLen - 1] = lastPre);
|
|
1522
|
-
return ret
|
|
1753
|
+
return ret === 0 ? 0 : 2;
|
|
1523
1754
|
}
|
|
1524
1755
|
function $initSearch(this$static) {
|
|
1525
1756
|
var i;
|
|
1526
1757
|
this$static.conjMask = 0;
|
|
1527
1758
|
this$static.selfSym = $selfSymmetry(this$static.cc);
|
|
1528
|
-
this$static.conjMask |= neq(
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1759
|
+
this$static.conjMask |= neq(and(shr(this$static.selfSym, 16), {
|
|
1760
|
+
l: $intern_20,
|
|
1761
|
+
m: 0,
|
|
1762
|
+
h: 0
|
|
1763
|
+
}), { l: 0, m: 0, h: 0 }) ? 18 : 0;
|
|
1764
|
+
this$static.conjMask |= neq(and(shr(this$static.selfSym, 32), {
|
|
1765
|
+
l: $intern_20,
|
|
1766
|
+
m: 0,
|
|
1767
|
+
h: 0
|
|
1768
|
+
}), { l: 0, m: 0, h: 0 }) ? 36 : 0;
|
|
1769
|
+
this$static.conjMask |= neq(and(shr(this$static.selfSym, 48), {
|
|
1770
|
+
l: $intern_20,
|
|
1771
|
+
m: 0,
|
|
1772
|
+
h: 0
|
|
1773
|
+
}), { l: 0, m: 0, h: 0 }) ? 56 : 0;
|
|
1540
1774
|
this$static.selfSym = and(this$static.selfSym, {
|
|
1541
1775
|
l: $intern_9,
|
|
1542
1776
|
m: $intern_9,
|
|
@@ -1547,13 +1781,18 @@ function $initSearch(this$static) {
|
|
|
1547
1781
|
$copy(this$static.urfCubieCube[i], this$static.cc);
|
|
1548
1782
|
$setWithPrun(this$static.urfCoordCube[i], this$static.urfCubieCube[i], 20);
|
|
1549
1783
|
$URFConjugate(this$static.cc);
|
|
1550
|
-
i % 3
|
|
1784
|
+
i % 3 === 2 && $invCubieCube(this$static.cc);
|
|
1551
1785
|
}
|
|
1552
1786
|
}
|
|
1553
1787
|
function $phase1(this$static, node, ssym, maxl, lm) {
|
|
1554
|
-
var axis_0
|
|
1555
|
-
|
|
1556
|
-
|
|
1788
|
+
var axis_0;
|
|
1789
|
+
var m;
|
|
1790
|
+
var power;
|
|
1791
|
+
var prun;
|
|
1792
|
+
var ret;
|
|
1793
|
+
var skipMoves;
|
|
1794
|
+
if (node.prun === 0 && maxl < 5) {
|
|
1795
|
+
if (this$static.allowShorter || maxl === 0) {
|
|
1557
1796
|
this$static.depth1 -= maxl;
|
|
1558
1797
|
ret = $initPhase2Pre(this$static);
|
|
1559
1798
|
this$static.depth1 += maxl;
|
|
@@ -1564,24 +1803,24 @@ function $phase1(this$static, node, ssym, maxl, lm) {
|
|
|
1564
1803
|
}
|
|
1565
1804
|
skipMoves = getSkipMoves(fromInt(ssym));
|
|
1566
1805
|
for (axis_0 = 0; axis_0 < 18; axis_0 += 3) {
|
|
1567
|
-
if (axis_0
|
|
1806
|
+
if (axis_0 === lm || axis_0 === lm - 9) {
|
|
1568
1807
|
continue;
|
|
1569
1808
|
}
|
|
1570
1809
|
for (power = 0; power < 3; power++) {
|
|
1571
1810
|
m = axis_0 + power;
|
|
1572
|
-
if (this$static.isRec && m
|
|
1811
|
+
if (this$static.isRec && m !== this$static.move[this$static.depth1 - maxl] || skipMoves !== 0 && (skipMoves & 1 << m) !== 0) {
|
|
1573
1812
|
continue;
|
|
1574
1813
|
}
|
|
1575
1814
|
prun = $doMovePrun(this$static.nodeUD[maxl], node, m);
|
|
1576
1815
|
if (prun > maxl) {
|
|
1577
1816
|
break;
|
|
1578
|
-
} else if (prun
|
|
1817
|
+
} else if (prun === maxl) {
|
|
1579
1818
|
continue;
|
|
1580
1819
|
}
|
|
1581
1820
|
prun = $doMovePrunConj(this$static.nodeUD[maxl], node, m);
|
|
1582
1821
|
if (prun > maxl) {
|
|
1583
1822
|
break;
|
|
1584
|
-
} else if (prun
|
|
1823
|
+
} else if (prun === maxl) {
|
|
1585
1824
|
continue;
|
|
1586
1825
|
}
|
|
1587
1826
|
this$static.move[this$static.depth1 - maxl] = m;
|
|
@@ -1593,7 +1832,7 @@ function $phase1(this$static, node, ssym, maxl, lm) {
|
|
|
1593
1832
|
maxl - 1,
|
|
1594
1833
|
axis_0
|
|
1595
1834
|
);
|
|
1596
|
-
if (ret
|
|
1835
|
+
if (ret === 0) {
|
|
1597
1836
|
return 0;
|
|
1598
1837
|
} else if (ret >= 2) {
|
|
1599
1838
|
break;
|
|
@@ -1603,12 +1842,14 @@ function $phase1(this$static, node, ssym, maxl, lm) {
|
|
|
1603
1842
|
return 1;
|
|
1604
1843
|
}
|
|
1605
1844
|
function $phase1PreMoves(this$static, maxl, lm, cc, ssym) {
|
|
1606
|
-
var m
|
|
1845
|
+
var m;
|
|
1846
|
+
var ret;
|
|
1847
|
+
var skipMoves;
|
|
1607
1848
|
this$static.preMoveLen = this$static.maxPreMoves - maxl;
|
|
1608
|
-
if (this$static.isRec ? this$static.depth1
|
|
1849
|
+
if (this$static.isRec ? this$static.depth1 === this$static.length1 - this$static.preMoveLen : this$static.preMoveLen === 0 || (225207 >> lm & 1) === 0) {
|
|
1609
1850
|
this$static.depth1 = this$static.length1 - this$static.preMoveLen;
|
|
1610
1851
|
this$static.phase1Cubie[0] = cc;
|
|
1611
|
-
this$static.allowShorter = this$static.depth1
|
|
1852
|
+
this$static.allowShorter = this$static.depth1 === MIN_P1LENGTH_PRE && this$static.preMoveLen !== 0;
|
|
1612
1853
|
if ($setWithPrun(
|
|
1613
1854
|
this$static.nodeUD[this$static.depth1 + 1],
|
|
1614
1855
|
cc,
|
|
@@ -1619,22 +1860,22 @@ function $phase1PreMoves(this$static, maxl, lm, cc, ssym) {
|
|
|
1619
1860
|
ssym,
|
|
1620
1861
|
this$static.depth1,
|
|
1621
1862
|
-1
|
|
1622
|
-
)
|
|
1863
|
+
) === 0) {
|
|
1623
1864
|
return 0;
|
|
1624
1865
|
}
|
|
1625
1866
|
}
|
|
1626
|
-
if (maxl
|
|
1867
|
+
if (maxl === 0 || this$static.preMoveLen + MIN_P1LENGTH_PRE >= this$static.length1) {
|
|
1627
1868
|
return 1;
|
|
1628
1869
|
}
|
|
1629
1870
|
skipMoves = getSkipMoves(fromInt(ssym));
|
|
1630
|
-
(maxl
|
|
1871
|
+
(maxl === 1 || this$static.preMoveLen + 1 + MIN_P1LENGTH_PRE >= this$static.length1) && (skipMoves |= 225207);
|
|
1631
1872
|
lm = ~~(lm / 3) * 3;
|
|
1632
1873
|
for (m = 0; m < 18; m++) {
|
|
1633
|
-
if (m
|
|
1874
|
+
if (m === lm || m === lm - 9 || m === lm + 9) {
|
|
1634
1875
|
m += 2;
|
|
1635
1876
|
continue;
|
|
1636
1877
|
}
|
|
1637
|
-
if (this$static.isRec && m
|
|
1878
|
+
if (this$static.isRec && m !== this$static.preMoves[this$static.maxPreMoves - maxl] || (skipMoves & 1 << m) !== 0) {
|
|
1638
1879
|
continue;
|
|
1639
1880
|
}
|
|
1640
1881
|
CornMult(
|
|
@@ -1651,20 +1892,30 @@ function $phase1PreMoves(this$static, maxl, lm, cc, ssym) {
|
|
|
1651
1892
|
this$static.preMoveCubes[maxl],
|
|
1652
1893
|
ssym & toInt(moveCubeSym[m])
|
|
1653
1894
|
);
|
|
1654
|
-
if (ret
|
|
1895
|
+
if (ret === 0) {
|
|
1655
1896
|
return 0;
|
|
1656
1897
|
}
|
|
1657
1898
|
}
|
|
1658
1899
|
return 1;
|
|
1659
1900
|
}
|
|
1660
1901
|
function $phase2(this$static, edge, esym, corn, csym, mid, maxl, depth, lm) {
|
|
1661
|
-
var corni
|
|
1662
|
-
|
|
1902
|
+
var corni;
|
|
1903
|
+
var cornx;
|
|
1904
|
+
var csymx;
|
|
1905
|
+
var edgei;
|
|
1906
|
+
var edgex;
|
|
1907
|
+
var esymx;
|
|
1908
|
+
var m;
|
|
1909
|
+
var midx;
|
|
1910
|
+
var moveMask;
|
|
1911
|
+
var prun;
|
|
1912
|
+
var ret;
|
|
1913
|
+
if (edge === 0 && corn === 0 && mid === 0) {
|
|
1663
1914
|
return maxl;
|
|
1664
1915
|
}
|
|
1665
1916
|
moveMask = ($clinit_Util(), ckmv2bit)[lm];
|
|
1666
1917
|
for (m = 0; m < 10; m++) {
|
|
1667
|
-
if ((moveMask >> m & 1)
|
|
1918
|
+
if ((moveMask >> m & 1) !== 0) {
|
|
1668
1919
|
m += 66 >> m & 3;
|
|
1669
1920
|
continue;
|
|
1670
1921
|
}
|
|
@@ -1727,7 +1978,7 @@ function $search(this$static) {
|
|
|
1727
1978
|
this$static.solLen - this$static.length1 - 1
|
|
1728
1979
|
);
|
|
1729
1980
|
for (this$static.urfIdx = this$static.isRec ? this$static.urfIdx : 0; this$static.urfIdx < 6; this$static.urfIdx++) {
|
|
1730
|
-
if ((this$static.conjMask & 1 << this$static.urfIdx)
|
|
1981
|
+
if ((this$static.conjMask & 1 << this$static.urfIdx) !== 0) {
|
|
1731
1982
|
continue;
|
|
1732
1983
|
}
|
|
1733
1984
|
if ($phase1PreMoves(
|
|
@@ -1736,7 +1987,7 @@ function $search(this$static) {
|
|
|
1736
1987
|
-30,
|
|
1737
1988
|
this$static.urfCubieCube[this$static.urfIdx],
|
|
1738
1989
|
toInt(and(this$static.selfSym, { l: $intern_20, m: 0, h: 0 }))
|
|
1739
|
-
)
|
|
1990
|
+
) === 0) {
|
|
1740
1991
|
return !this$static.solution ? "Error 8" : $toString_2(this$static.solution);
|
|
1741
1992
|
}
|
|
1742
1993
|
}
|
|
@@ -1746,8 +1997,8 @@ function $search(this$static) {
|
|
|
1746
1997
|
function $solution(this$static, facelets) {
|
|
1747
1998
|
var check;
|
|
1748
1999
|
check = $verify_0(this$static, facelets);
|
|
1749
|
-
if (check
|
|
1750
|
-
return
|
|
2000
|
+
if (check !== 0) {
|
|
2001
|
+
return `Error ${check < 0 ? -check : check}`;
|
|
1751
2002
|
}
|
|
1752
2003
|
this$static.solLen = 22;
|
|
1753
2004
|
this$static.probe = { l: 0, m: 0, h: 0 };
|
|
@@ -1761,7 +2012,10 @@ function $solution(this$static, facelets) {
|
|
|
1761
2012
|
return $search(this$static);
|
|
1762
2013
|
}
|
|
1763
2014
|
function $verify_0(this$static, facelets) {
|
|
1764
|
-
var center
|
|
2015
|
+
var center;
|
|
2016
|
+
var count;
|
|
2017
|
+
var f;
|
|
2018
|
+
var i;
|
|
1765
2019
|
count = 0;
|
|
1766
2020
|
f = initDim(B_classLit, $intern_30, 0, 54, 7, 1);
|
|
1767
2021
|
center = _String(
|
|
@@ -1776,19 +2030,21 @@ function $verify_0(this$static, facelets) {
|
|
|
1776
2030
|
);
|
|
1777
2031
|
for (i = 0; i < 54; i++) {
|
|
1778
2032
|
f[i] = $indexOf_0(center, fromCodePoint(facelets.charCodeAt(i))) << 24 >> 24;
|
|
1779
|
-
if (f[i]
|
|
2033
|
+
if (f[i] === -1) {
|
|
1780
2034
|
return -1;
|
|
1781
2035
|
}
|
|
1782
2036
|
count += 1 << (f[i] << 2);
|
|
1783
2037
|
}
|
|
1784
|
-
if (count
|
|
2038
|
+
if (count !== 10066329) {
|
|
1785
2039
|
return -1;
|
|
1786
2040
|
}
|
|
1787
2041
|
toCubieCube(f, this$static.cc);
|
|
1788
2042
|
return $verify(this$static.cc);
|
|
1789
2043
|
}
|
|
1790
2044
|
function Search() {
|
|
1791
|
-
var i
|
|
2045
|
+
var i;
|
|
2046
|
+
var i0;
|
|
2047
|
+
var i1;
|
|
1792
2048
|
this.move = initDim(I_classLit, $intern_27, 0, 31, 7, 1);
|
|
1793
2049
|
this.nodeUD = initDim(
|
|
1794
2050
|
Lorg_cubing_min2phase_client_CoordCube_2_classLit,
|
|
@@ -1887,197 +2143,157 @@ function $clinit_Util() {
|
|
|
1887
2143
|
return;
|
|
1888
2144
|
}
|
|
1889
2145
|
$clinit_Util_ran = true;
|
|
1890
|
-
var i
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
$
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
[32, 16]
|
|
1995
|
-
),
|
|
1996
|
-
initValues(
|
|
1997
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1998
|
-
$intern_30,
|
|
1999
|
-
0,
|
|
2000
|
-
7,
|
|
2001
|
-
[28, 25]
|
|
2002
|
-
),
|
|
2003
|
-
initValues(
|
|
2004
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2005
|
-
$intern_30,
|
|
2006
|
-
0,
|
|
2007
|
-
7,
|
|
2008
|
-
[30, 43]
|
|
2009
|
-
),
|
|
2010
|
-
initValues(
|
|
2011
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2012
|
-
$intern_30,
|
|
2013
|
-
0,
|
|
2014
|
-
7,
|
|
2015
|
-
[34, 52]
|
|
2016
|
-
),
|
|
2017
|
-
initValues(
|
|
2018
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2019
|
-
$intern_30,
|
|
2020
|
-
0,
|
|
2021
|
-
7,
|
|
2022
|
-
[23, 12]
|
|
2023
|
-
),
|
|
2024
|
-
initValues(
|
|
2025
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2026
|
-
$intern_30,
|
|
2027
|
-
0,
|
|
2028
|
-
7,
|
|
2029
|
-
[21, 41]
|
|
2030
|
-
),
|
|
2031
|
-
initValues(
|
|
2032
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2033
|
-
$intern_30,
|
|
2034
|
-
0,
|
|
2035
|
-
7,
|
|
2036
|
-
[50, 39]
|
|
2037
|
-
),
|
|
2038
|
-
initValues(
|
|
2039
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2040
|
-
$intern_30,
|
|
2041
|
-
0,
|
|
2042
|
-
7,
|
|
2043
|
-
[48, 14]
|
|
2044
|
-
)
|
|
2045
|
-
]
|
|
2046
|
-
);
|
|
2146
|
+
var i;
|
|
2147
|
+
var i0;
|
|
2148
|
+
var i1;
|
|
2149
|
+
var ix;
|
|
2150
|
+
var j;
|
|
2151
|
+
var jx;
|
|
2152
|
+
cornerFacelet = initValues(getClassLiteralForArray(
|
|
2153
|
+
B_classLit,
|
|
2154
|
+
2
|
|
2155
|
+
), $intern_3, 10, 0, [
|
|
2156
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2157
|
+
8,
|
|
2158
|
+
9,
|
|
2159
|
+
20
|
|
2160
|
+
]),
|
|
2161
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2162
|
+
6,
|
|
2163
|
+
18,
|
|
2164
|
+
38
|
|
2165
|
+
]),
|
|
2166
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2167
|
+
0,
|
|
2168
|
+
36,
|
|
2169
|
+
47
|
|
2170
|
+
]),
|
|
2171
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2172
|
+
2,
|
|
2173
|
+
45,
|
|
2174
|
+
11
|
|
2175
|
+
]),
|
|
2176
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2177
|
+
29,
|
|
2178
|
+
26,
|
|
2179
|
+
15
|
|
2180
|
+
]),
|
|
2181
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2182
|
+
27,
|
|
2183
|
+
44,
|
|
2184
|
+
24
|
|
2185
|
+
]),
|
|
2186
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2187
|
+
33,
|
|
2188
|
+
53,
|
|
2189
|
+
42
|
|
2190
|
+
]),
|
|
2191
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2192
|
+
35,
|
|
2193
|
+
17,
|
|
2194
|
+
51
|
|
2195
|
+
])
|
|
2196
|
+
]);
|
|
2197
|
+
edgeFacelet = initValues(getClassLiteralForArray(
|
|
2198
|
+
B_classLit,
|
|
2199
|
+
2
|
|
2200
|
+
), $intern_3, 10, 0, [
|
|
2201
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2202
|
+
5,
|
|
2203
|
+
10
|
|
2204
|
+
]),
|
|
2205
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2206
|
+
7,
|
|
2207
|
+
19
|
|
2208
|
+
]),
|
|
2209
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2210
|
+
3,
|
|
2211
|
+
37
|
|
2212
|
+
]),
|
|
2213
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2214
|
+
1,
|
|
2215
|
+
46
|
|
2216
|
+
]),
|
|
2217
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2218
|
+
32,
|
|
2219
|
+
16
|
|
2220
|
+
]),
|
|
2221
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2222
|
+
28,
|
|
2223
|
+
25
|
|
2224
|
+
]),
|
|
2225
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2226
|
+
30,
|
|
2227
|
+
43
|
|
2228
|
+
]),
|
|
2229
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2230
|
+
34,
|
|
2231
|
+
52
|
|
2232
|
+
]),
|
|
2233
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2234
|
+
23,
|
|
2235
|
+
12
|
|
2236
|
+
]),
|
|
2237
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2238
|
+
21,
|
|
2239
|
+
41
|
|
2240
|
+
]),
|
|
2241
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2242
|
+
50,
|
|
2243
|
+
39
|
|
2244
|
+
]),
|
|
2245
|
+
initValues(getClassLiteralForArray(B_classLit, 1), $intern_30, 0, 7, [
|
|
2246
|
+
48,
|
|
2247
|
+
14
|
|
2248
|
+
])
|
|
2249
|
+
]);
|
|
2047
2250
|
Cnk = initDims(I_classLit, [$intern_3, $intern_27], [17, 0], 7, [13, 13], 2);
|
|
2048
|
-
move2str = initValues(
|
|
2049
|
-
|
|
2050
|
-
|
|
2251
|
+
move2str = initValues(getClassLiteralForArray(
|
|
2252
|
+
Ljava_lang_String_2_classLit,
|
|
2253
|
+
1
|
|
2254
|
+
), $intern_3, 2, 4, [
|
|
2255
|
+
"U ",
|
|
2256
|
+
"U2",
|
|
2257
|
+
"U'",
|
|
2258
|
+
"R ",
|
|
2259
|
+
"R2",
|
|
2260
|
+
"R'",
|
|
2261
|
+
"F ",
|
|
2262
|
+
"F2",
|
|
2263
|
+
"F'",
|
|
2264
|
+
"D ",
|
|
2265
|
+
"D2",
|
|
2266
|
+
"D'",
|
|
2267
|
+
"L ",
|
|
2268
|
+
"L2",
|
|
2269
|
+
"L'",
|
|
2270
|
+
"B ",
|
|
2271
|
+
"B2",
|
|
2272
|
+
"B'"
|
|
2273
|
+
]);
|
|
2274
|
+
ud2std = initValues(getClassLiteralForArray(
|
|
2275
|
+
I_classLit,
|
|
2276
|
+
1
|
|
2277
|
+
), $intern_27, 0, 7, [
|
|
2278
|
+
0,
|
|
2279
|
+
1,
|
|
2051
2280
|
2,
|
|
2052
2281
|
4,
|
|
2053
|
-
[
|
|
2054
|
-
"U ",
|
|
2055
|
-
"U2",
|
|
2056
|
-
"U'",
|
|
2057
|
-
"R ",
|
|
2058
|
-
"R2",
|
|
2059
|
-
"R'",
|
|
2060
|
-
"F ",
|
|
2061
|
-
"F2",
|
|
2062
|
-
"F'",
|
|
2063
|
-
"D ",
|
|
2064
|
-
"D2",
|
|
2065
|
-
"D'",
|
|
2066
|
-
"L ",
|
|
2067
|
-
"L2",
|
|
2068
|
-
"L'",
|
|
2069
|
-
"B ",
|
|
2070
|
-
"B2",
|
|
2071
|
-
"B'"
|
|
2072
|
-
]
|
|
2073
|
-
);
|
|
2074
|
-
ud2std = initValues(
|
|
2075
|
-
getClassLiteralForArray(I_classLit, 1),
|
|
2076
|
-
$intern_27,
|
|
2077
|
-
0,
|
|
2078
2282
|
7,
|
|
2079
|
-
|
|
2080
|
-
|
|
2283
|
+
9,
|
|
2284
|
+
10,
|
|
2285
|
+
11,
|
|
2286
|
+
13,
|
|
2287
|
+
16,
|
|
2288
|
+
3,
|
|
2289
|
+
5,
|
|
2290
|
+
6,
|
|
2291
|
+
8,
|
|
2292
|
+
12,
|
|
2293
|
+
14,
|
|
2294
|
+
15,
|
|
2295
|
+
17
|
|
2296
|
+
]);
|
|
2081
2297
|
std2ud = initDim(I_classLit, $intern_27, 0, 18, 7, 1);
|
|
2082
2298
|
ckmv2bit = initDim(I_classLit, $intern_27, 0, 11, 7, 1);
|
|
2083
2299
|
for (i0 = 0; i0 < 18; i0++) {
|
|
@@ -2088,7 +2304,7 @@ function $clinit_Util() {
|
|
|
2088
2304
|
ckmv2bit[i1] = 0;
|
|
2089
2305
|
for (j = 0; j < 10; j++) {
|
|
2090
2306
|
jx = ~~(ud2std[j] / 3);
|
|
2091
|
-
ckmv2bit[i1] |= (ix
|
|
2307
|
+
ckmv2bit[i1] |= (ix === jx || ix % 3 === jx % 3 && ix >= jx ? 1 : 0) << j;
|
|
2092
2308
|
}
|
|
2093
2309
|
}
|
|
2094
2310
|
ckmv2bit[10] = 0;
|
|
@@ -2101,19 +2317,24 @@ function $clinit_Util() {
|
|
|
2101
2317
|
}
|
|
2102
2318
|
function getComb(arr, mask, isEdge) {
|
|
2103
2319
|
$clinit_Util();
|
|
2104
|
-
var end
|
|
2320
|
+
var end;
|
|
2321
|
+
var i;
|
|
2322
|
+
var idxC;
|
|
2323
|
+
var perm;
|
|
2324
|
+
var r;
|
|
2105
2325
|
end = arr.length - 1;
|
|
2106
2326
|
idxC = 0;
|
|
2107
2327
|
r = 4;
|
|
2108
2328
|
for (i = end; i >= 0; i--) {
|
|
2109
2329
|
perm = getVal(arr[i], isEdge);
|
|
2110
|
-
(perm & 12)
|
|
2330
|
+
(perm & 12) === mask && (idxC += Cnk[i][r--]);
|
|
2111
2331
|
}
|
|
2112
2332
|
return idxC;
|
|
2113
2333
|
}
|
|
2114
2334
|
function getNParity(idx, n) {
|
|
2115
2335
|
$clinit_Util();
|
|
2116
|
-
var i
|
|
2336
|
+
var i;
|
|
2337
|
+
var p;
|
|
2117
2338
|
p = 0;
|
|
2118
2339
|
for (i = n - 2; i >= 0; i--) {
|
|
2119
2340
|
p ^= idx % (n - i);
|
|
@@ -2123,7 +2344,10 @@ function getNParity(idx, n) {
|
|
|
2123
2344
|
}
|
|
2124
2345
|
function getNPerm(arr, n, isEdge) {
|
|
2125
2346
|
$clinit_Util();
|
|
2126
|
-
var i
|
|
2347
|
+
var i;
|
|
2348
|
+
var idx;
|
|
2349
|
+
var v;
|
|
2350
|
+
var val;
|
|
2127
2351
|
idx = 0;
|
|
2128
2352
|
val = { l: 1323536, m: 2777561, h: 1043915 };
|
|
2129
2353
|
for (i = 0; i < n - 1; i++) {
|
|
@@ -2138,7 +2362,10 @@ function getVal(val0, isEdge) {
|
|
|
2138
2362
|
}
|
|
2139
2363
|
function setComb(arr, idxC, mask, isEdge) {
|
|
2140
2364
|
$clinit_Util();
|
|
2141
|
-
var end
|
|
2365
|
+
var end;
|
|
2366
|
+
var fill;
|
|
2367
|
+
var i;
|
|
2368
|
+
var r;
|
|
2142
2369
|
end = arr.length - 1;
|
|
2143
2370
|
r = 4;
|
|
2144
2371
|
fill = end;
|
|
@@ -2147,14 +2374,19 @@ function setComb(arr, idxC, mask, isEdge) {
|
|
|
2147
2374
|
idxC -= Cnk[i][r--];
|
|
2148
2375
|
arr[i] = setVal(arr[i], r | mask, isEdge);
|
|
2149
2376
|
} else {
|
|
2150
|
-
(fill & 12)
|
|
2377
|
+
(fill & 12) === mask && (fill -= 4);
|
|
2151
2378
|
arr[i] = setVal(arr[i], fill--, isEdge);
|
|
2152
2379
|
}
|
|
2153
2380
|
}
|
|
2154
2381
|
}
|
|
2155
2382
|
function setNPerm(arr, idx, n, isEdge) {
|
|
2156
2383
|
$clinit_Util();
|
|
2157
|
-
var extract
|
|
2384
|
+
var extract;
|
|
2385
|
+
var i;
|
|
2386
|
+
var m;
|
|
2387
|
+
var p;
|
|
2388
|
+
var v;
|
|
2389
|
+
var val;
|
|
2158
2390
|
val = { l: 1323536, m: 2777561, h: 1043915 };
|
|
2159
2391
|
extract = { l: 0, m: 0, h: 0 };
|
|
2160
2392
|
for (p = 2; p <= n; p++) {
|
|
@@ -2190,7 +2422,14 @@ function setVal(val0, val, isEdge) {
|
|
|
2190
2422
|
}
|
|
2191
2423
|
function toCubieCube(f, ccRet) {
|
|
2192
2424
|
$clinit_Util();
|
|
2193
|
-
var col1
|
|
2425
|
+
var col1;
|
|
2426
|
+
var col2;
|
|
2427
|
+
var i;
|
|
2428
|
+
var i0;
|
|
2429
|
+
var i1;
|
|
2430
|
+
var i2;
|
|
2431
|
+
var j;
|
|
2432
|
+
var ori;
|
|
2194
2433
|
for (i0 = 0; i0 < 8; i0++) {
|
|
2195
2434
|
ccRet.ca[i0] = 0;
|
|
2196
2435
|
}
|
|
@@ -2199,13 +2438,14 @@ function toCubieCube(f, ccRet) {
|
|
|
2199
2438
|
}
|
|
2200
2439
|
for (i2 = 0; i2 < 8; i2++) {
|
|
2201
2440
|
for (ori = 0; ori < 3; ori++) {
|
|
2202
|
-
if (f[cornerFacelet[i2][ori]]
|
|
2441
|
+
if (f[cornerFacelet[i2][ori]] === 0 || f[cornerFacelet[i2][ori]] === 3) {
|
|
2203
2442
|
break;
|
|
2443
|
+
}
|
|
2204
2444
|
}
|
|
2205
2445
|
col1 = f[cornerFacelet[i2][(ori + 1) % 3]];
|
|
2206
2446
|
col2 = f[cornerFacelet[i2][(ori + 2) % 3]];
|
|
2207
2447
|
for (j = 0; j < 8; j++) {
|
|
2208
|
-
if (col1
|
|
2448
|
+
if (col1 === ~~(cornerFacelet[j][1] / 9) && col2 === ~~(cornerFacelet[j][2] / 9)) {
|
|
2209
2449
|
ccRet.ca[i2] = narrow_byte(ori % 3 << 3 | j);
|
|
2210
2450
|
break;
|
|
2211
2451
|
}
|
|
@@ -2213,11 +2453,11 @@ function toCubieCube(f, ccRet) {
|
|
|
2213
2453
|
}
|
|
2214
2454
|
for (i = 0; i < 12; i++) {
|
|
2215
2455
|
for (j = 0; j < 12; j++) {
|
|
2216
|
-
if (f[edgeFacelet[i][0]]
|
|
2456
|
+
if (f[edgeFacelet[i][0]] === ~~(edgeFacelet[j][0] / 9) && f[edgeFacelet[i][1]] === ~~(edgeFacelet[j][1] / 9)) {
|
|
2217
2457
|
ccRet.ea[i] = narrow_byte(j << 1);
|
|
2218
2458
|
break;
|
|
2219
2459
|
}
|
|
2220
|
-
if (f[edgeFacelet[i][0]]
|
|
2460
|
+
if (f[edgeFacelet[i][0]] === ~~(edgeFacelet[j][1] / 9) && f[edgeFacelet[i][1]] === ~~(edgeFacelet[j][0] / 9)) {
|
|
2221
2461
|
ccRet.ea[i] = narrow_byte(j << 1 | 1);
|
|
2222
2462
|
break;
|
|
2223
2463
|
}
|
|
@@ -2232,21 +2472,23 @@ var move2str;
|
|
|
2232
2472
|
var std2ud;
|
|
2233
2473
|
var ud2std;
|
|
2234
2474
|
function $appendSolMove(this$static, curMove) {
|
|
2235
|
-
var axisCur
|
|
2236
|
-
|
|
2475
|
+
var axisCur;
|
|
2476
|
+
var axisLast;
|
|
2477
|
+
var pow_0;
|
|
2478
|
+
if (this$static.length_0 === 0) {
|
|
2237
2479
|
this$static.moves[this$static.length_0++] = curMove;
|
|
2238
2480
|
return;
|
|
2239
2481
|
}
|
|
2240
2482
|
axisCur = ~~(curMove / 3);
|
|
2241
2483
|
axisLast = ~~(this$static.moves[this$static.length_0 - 1] / 3);
|
|
2242
|
-
if (axisCur
|
|
2484
|
+
if (axisCur === axisLast) {
|
|
2243
2485
|
pow_0 = (curMove % 3 + this$static.moves[this$static.length_0 - 1] % 3 + 1) % 4;
|
|
2244
|
-
pow_0
|
|
2486
|
+
pow_0 === 3 ? --this$static.length_0 : this$static.moves[this$static.length_0 - 1] = axisCur * 3 + pow_0;
|
|
2245
2487
|
return;
|
|
2246
2488
|
}
|
|
2247
|
-
if (this$static.length_0 > 1 && axisCur % 3
|
|
2489
|
+
if (this$static.length_0 > 1 && axisCur % 3 === axisLast % 3 && axisCur === ~~(this$static.moves[this$static.length_0 - 2] / 3)) {
|
|
2248
2490
|
pow_0 = (curMove % 3 + this$static.moves[this$static.length_0 - 2] % 3 + 1) % 4;
|
|
2249
|
-
if (pow_0
|
|
2491
|
+
if (pow_0 === 3) {
|
|
2250
2492
|
this$static.moves[this$static.length_0 - 2] = this$static.moves[this$static.length_0 - 1];
|
|
2251
2493
|
--this$static.length_0;
|
|
2252
2494
|
} else {
|
|
@@ -2262,12 +2504,14 @@ function $setArgs(this$static, verbose, urfIdx, depth1) {
|
|
|
2262
2504
|
this$static.depth1 = depth1;
|
|
2263
2505
|
}
|
|
2264
2506
|
function $toString_2(this$static) {
|
|
2265
|
-
var s
|
|
2507
|
+
var s;
|
|
2508
|
+
var sb;
|
|
2509
|
+
var urf;
|
|
2266
2510
|
sb = new StringBuffer();
|
|
2267
|
-
urf = (this$static.verbose & 2)
|
|
2511
|
+
urf = (this$static.verbose & 2) !== 0 ? (this$static.urfIdx + 3) % 6 : this$static.urfIdx;
|
|
2268
2512
|
if (urf < 3) {
|
|
2269
2513
|
for (s = 0; s < this$static.length_0; s++) {
|
|
2270
|
-
(this$static.verbose & 1)
|
|
2514
|
+
(this$static.verbose & 1) !== 0 && s === this$static.depth1 && (sb.string += ". ", sb);
|
|
2271
2515
|
$append(
|
|
2272
2516
|
$append_1(
|
|
2273
2517
|
sb,
|
|
@@ -2283,7 +2527,7 @@ function $toString_2(this$static) {
|
|
|
2283
2527
|
($clinit_Util(), move2str)[($clinit_CubieCube(), urfMove)[urf][this$static.moves[s]]]
|
|
2284
2528
|
)
|
|
2285
2529
|
);
|
|
2286
|
-
(this$static.verbose & 1)
|
|
2530
|
+
(this$static.verbose & 1) !== 0 && s === this$static.depth1 && (sb.string += ". ", sb);
|
|
2287
2531
|
}
|
|
2288
2532
|
}
|
|
2289
2533
|
return sb.string;
|
|
@@ -2319,4 +2563,4 @@ export {
|
|
|
2319
2563
|
initialize,
|
|
2320
2564
|
solveState
|
|
2321
2565
|
};
|
|
2322
|
-
//# sourceMappingURL=search-dynamic-solve-3x3x3-
|
|
2566
|
+
//# sourceMappingURL=search-dynamic-solve-3x3x3-SA75BI5I.js.map
|