cubing 0.24.6 → 0.25.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 +14 -5
- package/dist/esm/{2x2x2.sgs.json-KBCXHIZP.js → 2x2x2.sgs.json-NUOQFJWU.js} +2 -2
- package/dist/esm/{2x2x2.sgs.json-KBCXHIZP.js.map → 2x2x2.sgs.json-NUOQFJWU.js.map} +0 -0
- package/dist/esm/{3d-dynamic-inside-IIG5EJZP.js → 3d-dynamic-AKACURPM.js} +13 -13
- package/dist/esm/3d-dynamic-AKACURPM.js.map +7 -0
- package/dist/esm/{gwt-B7CBESZR.js → 3x3x3-min2phase-FPRJ5PCJ.js} +2 -2
- package/dist/esm/{gwt-B7CBESZR.js.map → 3x3x3-min2phase-FPRJ5PCJ.js.map} +1 -1
- package/dist/esm/{scramble_444-ZFKBLRUE.js → 444-solver-GNQ5BHCL.js} +5 -5
- package/dist/esm/{scramble_444-ZFKBLRUE.js.map → 444-solver-GNQ5BHCL.js.map} +1 -1
- package/dist/esm/bluetooth/index.js +1 -1
- package/dist/esm/chunk-5O24MNND.js +25 -0
- package/dist/esm/chunk-5O24MNND.js.map +7 -0
- package/dist/esm/{chunk-UOI5KUW4.js → chunk-ASJ2DADD.js} +4 -4
- package/dist/esm/{chunk-UOI5KUW4.js.map → chunk-ASJ2DADD.js.map} +2 -2
- package/dist/esm/{chunk-V7BTHDW3.js → chunk-CYKV7QC5.js} +2 -2
- package/dist/esm/{chunk-V7BTHDW3.js.map → chunk-CYKV7QC5.js.map} +0 -0
- package/dist/esm/{chunk-DMCRTYR4.js → chunk-FZJDXPAH.js} +53 -22
- package/dist/esm/chunk-FZJDXPAH.js.map +7 -0
- package/dist/esm/{chunk-OOIEAACO.js → chunk-L3PZ4XAT.js} +2 -2
- package/dist/esm/{chunk-OOIEAACO.js.map → chunk-L3PZ4XAT.js.map} +2 -2
- package/dist/esm/{chunk-37EHU3GZ.js → chunk-RENZB7QN.js} +4 -2
- package/dist/esm/chunk-RENZB7QN.js.map +7 -0
- package/dist/esm/{chunk-MVJPIWT7.js → chunk-SNWS6JXI.js} +7 -5
- package/dist/esm/{chunk-MVJPIWT7.js.map → chunk-SNWS6JXI.js.map} +2 -2
- package/dist/esm/{entry-FHL2XSAP.js → entry-2KUJYJBJ.js} +39 -60
- package/dist/esm/entry-2KUJYJBJ.js.map +7 -0
- package/dist/esm/fto-solver-HI6NIV74.js +1537 -0
- package/dist/esm/fto-solver-HI6NIV74.js.map +7 -0
- package/dist/esm/{fto.sgs.json-USV4WNQJ.js → fto.dynamic-A3AASYQ6.js} +8 -3
- package/dist/esm/fto.dynamic-A3AASYQ6.js.map +7 -0
- package/dist/esm/master_tetraminx-solver-KBQJGW4A.js +729 -0
- package/dist/esm/master_tetraminx-solver-KBQJGW4A.js.map +7 -0
- package/dist/esm/puzzles/index.js +1 -1
- package/dist/esm/{pyraminx.sgs.json-HMKDN3ZT.js → pyraminx.sgs.json-X37XL7MA.js} +3 -3
- package/dist/esm/{pyraminx.sgs.json-HMKDN3ZT.js.map → pyraminx.sgs.json-X37XL7MA.js.map} +0 -0
- package/dist/esm/scramble/index.js +4 -4
- package/dist/esm/search/index.js +4 -4
- package/dist/esm/{module-entry-TKJ6ZAZB.js → search-worker-entry-ZJAXYGSH.js} +7 -7
- package/dist/esm/search-worker-entry-ZJAXYGSH.js.map +7 -0
- package/dist/esm/{scramble_sq1-PQ2AYBFW.js → sq1-solver-P3IWWET7.js} +3 -3
- package/dist/esm/{scramble_sq1-PQ2AYBFW.js.map → sq1-solver-P3IWWET7.js.map} +1 -1
- package/dist/esm/twisty/index.js +54 -12
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/esm/worker-inside-generated-string-OBSDMXAS.js +3447 -0
- package/dist/esm/worker-inside-generated-string-OBSDMXAS.js.map +7 -0
- package/dist/types/puzzles/async/async-pg3d.d.ts +2 -0
- package/dist/types/search/inside/{module-entry-path-getter.d.ts → search-worker-entry-path-getter.d.ts} +0 -0
- package/dist/types/search/inside/{module-entry.d.ts → search-worker-entry.d.ts} +0 -0
- package/dist/types/search/inside/solve/puzzles/fto.d.ts +1 -1
- package/dist/types/search/inside/solve/puzzles/{fto.sgs.json.d.ts → fto.dynamic.d.ts} +1 -0
- package/dist/types/search/inside/solve/puzzles/master_tetraminx.d.ts +2 -0
- package/dist/types/search/worker-inside-generated-string.d.ts +1 -1
- package/dist/types/twisty/heavy-code-imports/3d.d.ts +1 -1
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/{3d-dynamic-inside.d.ts → 3d-dynamic.d.ts} +0 -0
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts +4 -0
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts +1 -2
- package/dist/types/twisty/model/props/general/ArbitraryStringProp.d.ts +4 -0
- package/dist/types/twisty/views/TwistyPlayer.d.ts +6 -0
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts +6 -0
- package/dist/types/twisty/views/twizzle/TwizzleLink.d.ts +1 -1
- package/dist/types/vendor/comlink-everywhere/inside/index.d.ts +2 -1
- package/dist/types/vendor/comlink-everywhere/node-adapter.d.ts +6 -0
- package/dist/types/vendor/comlink-everywhere/outside/index.d.ts +4 -2
- package/dist/types/vendor/cstimer/src/js/scramble/{scramble_444.d.ts → 444-solver.d.ts} +0 -0
- package/dist/types/vendor/min2phase/{gwt.d.ts → 3x3x3-min2phase.d.ts} +0 -0
- package/dist/types/vendor/sq12phase/{scramble_sq1.d.ts → sq1-solver.d.ts} +0 -0
- package/dist/types/vendor/xyzzy/fto-solver-original.d.ts +203 -0
- package/dist/types/vendor/xyzzy/fto-solver.d.ts +1 -0
- package/dist/types/vendor/xyzzy/kilosolver.d.ts +140 -0
- package/dist/types/vendor/xyzzy/master_tetraminx-solver.d.ts +1 -0
- package/dist/types/vendor/xyzzy/rediscrambler.d.ts +94 -0
- package/package.json +3 -3
- package/dist/esm/3d-dynamic-inside-IIG5EJZP.js.map +0 -7
- package/dist/esm/chunk-37EHU3GZ.js.map +0 -7
- package/dist/esm/chunk-BJIOROQC.js +0 -18
- package/dist/esm/chunk-BJIOROQC.js.map +0 -7
- package/dist/esm/chunk-DMCRTYR4.js.map +0 -7
- package/dist/esm/entry-FHL2XSAP.js.map +0 -7
- package/dist/esm/esm-test-worker.js +0 -15
- package/dist/esm/esm-test-worker.js.map +0 -7
- package/dist/esm/fto.sgs.json-USV4WNQJ.js.map +0 -7
- package/dist/esm/module-entry-TKJ6ZAZB.js.map +0 -7
- package/dist/esm/node-SP4L2AKI.js +0 -12
- package/dist/esm/node-SP4L2AKI.js.map +0 -7
- package/dist/esm/node-W3AD4HBK.js +0 -39
- package/dist/esm/node-W3AD4HBK.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-XYHIVIPG.js +0 -3447
- package/dist/esm/worker-inside-generated-string-XYHIVIPG.js.map +0 -7
- package/dist/types/esm-test-worker.d.ts +0 -1
- package/dist/types/vendor/comlink-everywhere/inside/node.d.ts +0 -1
- package/dist/types/vendor/comlink-everywhere/outside/node.d.ts +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function proxy3D(): Promise<typeof import("./dynamic-entries/3d-dynamic
|
|
1
|
+
export declare function proxy3D(): Promise<typeof import("./dynamic-entries/3d-dynamic")>;
|
|
2
2
|
export declare const THREEJS: Promise<typeof import("three")>;
|
|
File without changes
|
|
@@ -42,6 +42,7 @@ import { NaiveMoveCountProp } from "./props/puzzle/state/NaiveMoveCountProp";
|
|
|
42
42
|
import { MovePressInputProp } from "./props/puzzle/state/MovePressInputProp";
|
|
43
43
|
import { FoundationDisplayProp } from "./props/puzzle/display/FoundationDisplayProp";
|
|
44
44
|
import { SetupTransformationProp } from "./props/puzzle/state/SetupTransformationProp";
|
|
45
|
+
import { ArbitraryStringProp } from "./props/general/ArbitraryStringProp";
|
|
45
46
|
export declare class TwistyPlayerModel {
|
|
46
47
|
userVisibleErrorTracker: UserVisibleErrorTracker;
|
|
47
48
|
alg: AlgProp;
|
|
@@ -68,6 +69,9 @@ export declare class TwistyPlayerModel {
|
|
|
68
69
|
timestampRequest: TimestampRequestProp;
|
|
69
70
|
viewerLink: ViewerLinkProp;
|
|
70
71
|
visualizationFormat: VisualizationFormatProp;
|
|
72
|
+
title: ArbitraryStringProp;
|
|
73
|
+
videoURL: URLProp;
|
|
74
|
+
competitionID: ArbitraryStringProp;
|
|
71
75
|
foundationStickerSprite: SpriteProp;
|
|
72
76
|
hintStickerSprite: SpriteProp;
|
|
73
77
|
puzzleLoader: PuzzleLoaderProp;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ManagedCustomElement } from "../../views/ManagedCustomElement";
|
|
2
2
|
import type { TwistyPlayer } from "../../views/TwistyPlayer";
|
|
3
|
-
import
|
|
4
|
-
export declare function splitFieldName(s: string): string;
|
|
3
|
+
import { TwistyPropParent } from "./TwistyProp";
|
|
5
4
|
export declare class TwistyPropDebugger extends ManagedCustomElement {
|
|
6
5
|
#private;
|
|
7
6
|
private name;
|
|
@@ -28,6 +28,9 @@ export declare const twistyPlayerAttributeMap: {
|
|
|
28
28
|
"back-view": string;
|
|
29
29
|
"viewer-link": string;
|
|
30
30
|
"experimental-move-press-input": string;
|
|
31
|
+
"experimental-title": string;
|
|
32
|
+
"experimental-video-url": string;
|
|
33
|
+
"experimental-competition-id": string;
|
|
31
34
|
"camera-latitude": string;
|
|
32
35
|
"camera-longitude": string;
|
|
33
36
|
"camera-distance": string;
|
|
@@ -51,6 +54,9 @@ export interface TwistyPlayerConfig {
|
|
|
51
54
|
backView?: BackViewLayoutWithAuto;
|
|
52
55
|
viewerLink?: ViewerLinkPageWithAuto;
|
|
53
56
|
experimentalMovePressInput?: MovePressInput;
|
|
57
|
+
experimentalTitle?: string;
|
|
58
|
+
experimentalVideoURL?: string;
|
|
59
|
+
experimentalCompetitionID?: string;
|
|
54
60
|
cameraLatitude?: number;
|
|
55
61
|
cameraLongitude?: number;
|
|
56
62
|
cameraDistance?: number;
|
|
@@ -40,6 +40,12 @@ export declare abstract class TwistyPlayerSettable extends ManagedCustomElement
|
|
|
40
40
|
get controlPanel(): never;
|
|
41
41
|
set visualization(visualizationFormat: VisualizationFormatWithAuto);
|
|
42
42
|
get visualization(): never;
|
|
43
|
+
set experimentalTitle(title: string | null);
|
|
44
|
+
get experimentalTitle(): never;
|
|
45
|
+
set experimentalVideoURL(videoURL: string | null);
|
|
46
|
+
get experimentalVideoURL(): never;
|
|
47
|
+
set experimentalCompetitionID(competitionID: string | null);
|
|
48
|
+
get experimentalCompetitionID(): never;
|
|
43
49
|
set viewerLink(viewerLinkPage: ViewerLinkPageWithAuto);
|
|
44
50
|
get viewerLink(): never;
|
|
45
51
|
set experimentalMovePressInput(movePressInput: MovePressInput);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export function
|
|
1
|
+
export declare function nodeEndpointPort(): Promise<MessagePort>;
|
|
2
|
+
export declare function expose(api: any): void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export function workerFileConstructor(): Promise<any>;
|
|
2
|
-
export function constructWorkerFromString(stringSource: any, options: any): Promise<any>;
|
|
3
1
|
export { wrap } from "comlink";
|
|
2
|
+
export declare function constructWorker(source: string | URL, options?: {
|
|
3
|
+
eval?: boolean;
|
|
4
|
+
type?: WorkerType;
|
|
5
|
+
}): Promise<Worker>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
declare function counter(A: any): any[];
|
|
2
|
+
declare function counter(A: any): any[];
|
|
3
|
+
declare function counter(A: any): any[];
|
|
4
|
+
declare function factorial(n: any): any;
|
|
5
|
+
declare function factorial(n: any): any;
|
|
6
|
+
declare function factorial(n: any): any;
|
|
7
|
+
declare function C(n: any, k: any): number;
|
|
8
|
+
declare function C(n: any, k: any): number;
|
|
9
|
+
declare function C(n: any, k: any): number;
|
|
10
|
+
declare function C4(n: any, k0: any, k1: any, k2: any, k3?: number): number;
|
|
11
|
+
declare function permutation_to_index(perm: any): number;
|
|
12
|
+
declare function permutation_to_index(perm: any): number;
|
|
13
|
+
declare function permutation_to_index(perm: any): number;
|
|
14
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
15
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
16
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
17
|
+
declare function permutation_parity(A: any): number;
|
|
18
|
+
declare function permutation_parity(A: any): number;
|
|
19
|
+
declare function permutation_parity(A: any): number;
|
|
20
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
21
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
22
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
23
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
24
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
25
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
26
|
+
declare function random_permutation(n: any): number[];
|
|
27
|
+
declare function random_even_permutation(n: any): number[];
|
|
28
|
+
declare function comb_to_index(l: any): number;
|
|
29
|
+
declare function comb_to_index(l: any): number;
|
|
30
|
+
declare function comb_to_index(l: any): number;
|
|
31
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
32
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
33
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
34
|
+
declare function ctz(n: any): number;
|
|
35
|
+
declare function generate_comb_lookup_tables(n: any, k: any): any;
|
|
36
|
+
declare function popcount(n: any): number;
|
|
37
|
+
declare function spread_bits(n: any): any;
|
|
38
|
+
declare function interleave_bits(x: any, y: any): number;
|
|
39
|
+
declare function generate_comb4_lookup_tables(n: any, k0: any, k1: any, k2: any, k3: any): any;
|
|
40
|
+
declare function compose(A: any, B: any): any[];
|
|
41
|
+
declare function compose(A: any, B: any): any[];
|
|
42
|
+
declare function compose(A: any, B: any): any[];
|
|
43
|
+
declare function compose3(A: any, B: any, C: any): any[];
|
|
44
|
+
declare function compose_o(A: any, B: any): any[][];
|
|
45
|
+
declare function compose_o(A: any, B: any): any[][];
|
|
46
|
+
declare function permutation_from_cycles(cycles: any, n: any): any[];
|
|
47
|
+
declare function reduce_permutation(perm: any, keep: any): any[];
|
|
48
|
+
declare function invert_permutation(perm: any): any[];
|
|
49
|
+
declare function gcd(a: any, b: any): number;
|
|
50
|
+
declare function lcm(a: any, b: any): number;
|
|
51
|
+
declare function permutation_order(perm: any): number;
|
|
52
|
+
declare function identify_corner_piece(colourA: any, colourB: any): number[];
|
|
53
|
+
declare function identify_edge_piece(colourA: any, colourB: any): number;
|
|
54
|
+
declare function get_corner_piece(facelets: any, location: any): number[];
|
|
55
|
+
declare function get_edge_piece(facelets: any, location: any): number;
|
|
56
|
+
declare function set_corner_piece(facelets: any, location: any, value: any, orientation: any): void;
|
|
57
|
+
declare function set_edge_piece(facelets: any, location: any, value: any): void;
|
|
58
|
+
declare function convert_move_to_permutations(move: any): {
|
|
59
|
+
cp: number[];
|
|
60
|
+
ep: number[];
|
|
61
|
+
ap: number[];
|
|
62
|
+
bp: number[];
|
|
63
|
+
};
|
|
64
|
+
declare function random_state(): any[];
|
|
65
|
+
declare function random_state(): any[][];
|
|
66
|
+
declare function stringify_move_sequence(move_sequence: any, no_wide?: boolean): any;
|
|
67
|
+
declare function stringify_move_sequence(move_sequence: any): any;
|
|
68
|
+
declare function stringify_move_sequence(move_sequence: any): any;
|
|
69
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
70
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
71
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
72
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
73
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
74
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
75
|
+
declare function invert_move_sequence(move_sequence: any): any;
|
|
76
|
+
declare function simplify_move_sequence(move_sequence: any, make_noise?: boolean): any[][];
|
|
77
|
+
declare function generate_random_state_scramble(): any;
|
|
78
|
+
declare function generate_random_state_scramble(): any;
|
|
79
|
+
declare function generate_random_state_scramble(): any;
|
|
80
|
+
declare function generate_multiple_random_state_scrambles(n: any): any[];
|
|
81
|
+
declare function generate_mtable_comb_generic(n: any, k: any, permutations: any): Uint32Array[];
|
|
82
|
+
declare function generate_mtable_comb4_generic(n: any, k0: any, k1: any, k2: any, k3: any, permutations: any): Uint32Array[];
|
|
83
|
+
declare function generate_mtable_single_generic(permutations: any): Uint32Array[];
|
|
84
|
+
declare function combine_mtables(mtable0: any, mtable1: any): Uint32Array[];
|
|
85
|
+
declare function trim_unreachable(mtable: any, origin: any): any[];
|
|
86
|
+
declare function reduce_to_quotient(mtable: any, origins: any): (Int32Array | Int32Array[])[];
|
|
87
|
+
declare function generate_mirrored_coordinate_table(mtable: any, a: any, b: any): Int32Array;
|
|
88
|
+
declare function bfs(mtable: any, goal_states: any): Int8Array;
|
|
89
|
+
declare function bfs(mtable: any, goal_states: any): any[];
|
|
90
|
+
declare function bfs(mtable: any, goal_states: any): any[];
|
|
91
|
+
declare function ida_solve_gen(indices: any, mtables: any, ptables: any, moves_left: any, commute: any): Generator<any, void, any>;
|
|
92
|
+
declare function ida_solve_gen(indices: any, mtables: any, ptables: any): Generator<any, void, any>;
|
|
93
|
+
declare function ida_search_gen(indices: any, mtables: any, ptables: any, bound: any, last: any, commute: any): any;
|
|
94
|
+
declare function ida_search_gen(indices: any, mtables: any, ptables: any, bound: any, last: any): any;
|
|
95
|
+
declare function solve(facelets: any, readable?: boolean): any[][];
|
|
96
|
+
declare function solve(state: any): any[];
|
|
97
|
+
declare function solve(state: any): any;
|
|
98
|
+
declare function index_phase1(facelets: any): any[];
|
|
99
|
+
declare function index_phase1(state: any): number[];
|
|
100
|
+
declare function generate_phase1_edge_mtable(): any;
|
|
101
|
+
declare function generate_phase1_edge_mtable(): any;
|
|
102
|
+
declare function generate_phase1_edge_ptable(): any;
|
|
103
|
+
declare function generate_phase1_edge_ptable(): any;
|
|
104
|
+
declare function generate_phase1_centreA_mtable(): any;
|
|
105
|
+
declare function generate_phase1_centreB_mtable(): any;
|
|
106
|
+
declare function generate_phase1_centre_ptable(): any;
|
|
107
|
+
declare function solve_phase1_gen(facelets: any): Generator<any, void, any>;
|
|
108
|
+
declare function phase1_ida_solve_gen(indices: any, mtables: any, ptables: any, moves_left: any): Generator<any, void, any>;
|
|
109
|
+
declare function phase1_ida_search_gen(indices: any, mtables: any, ptables: any, bound: any, last: any): any;
|
|
110
|
+
declare function index_phase2(facelets: any): any[];
|
|
111
|
+
declare function index_phase2(state: any): number[];
|
|
112
|
+
declare function solve_phase2_gen(facelets: any): Generator<any, void, any>;
|
|
113
|
+
declare function solve_phase2(facelets: any): any;
|
|
114
|
+
declare function solve_phase2(state: any): any;
|
|
115
|
+
declare function generate_phase2_centre_mtables(): any;
|
|
116
|
+
declare function generate_phase2_edge_mtable(): any;
|
|
117
|
+
declare function generate_phase2_edge_mtable(): any;
|
|
118
|
+
declare function generate_phase2_corner_mtable(): any;
|
|
119
|
+
declare function generate_phase2_corner_mtable(): any;
|
|
120
|
+
declare function generate_phase2_corner_mtable_compact(): any;
|
|
121
|
+
declare function generate_phase2_ce_mtable(): any;
|
|
122
|
+
declare function generate_phase2_ce_mirror_map(): any;
|
|
123
|
+
declare function phase2_centre_goal_states(): any;
|
|
124
|
+
declare function phase2_corner_goal_states(): number[];
|
|
125
|
+
declare function generate_phase2_ace_ptable(): any;
|
|
126
|
+
declare function phase2_ida_solve_gen(indices: any, moves_left: any): Generator<any, void, any>;
|
|
127
|
+
declare function phase2_ida_search_gen(a: any, b: any, ce: any, mtable_a: any, mtable_b: any, mtable_ce: any, ptable_ace: any, mirror_map: any, bound: any, last: any): any;
|
|
128
|
+
declare function index_phase3_2gen(facelets: any): any[];
|
|
129
|
+
declare function generate_phase3_2gen_edge_mtable(): any;
|
|
130
|
+
declare function generate_phase3_2gen_corner_mtable(): any;
|
|
131
|
+
declare function generate_phase3_2gen_corneredge_mtable(): any;
|
|
132
|
+
declare function generate_phase3_2gen_centre_mtable(): any;
|
|
133
|
+
declare function generate_phase3_2gen_depth_table(): any;
|
|
134
|
+
declare function solve_phase3_2gen(facelets: any, indices?: any[], simplify?: boolean): any[];
|
|
135
|
+
declare function solve_phase3_2gen_readable(facelets: any, indices?: any[]): any[][] | undefined;
|
|
136
|
+
declare function alternation_penalty(x: any): number;
|
|
137
|
+
declare function grade_readability(seq: any): any;
|
|
138
|
+
declare function alternations(seq: any): number[];
|
|
139
|
+
declare function solve_phase3_2gen_ida(ab: any, ce: any, mtable_ab: any, mtable_ce: any, depth_table: any, bound: any, last?: number): any;
|
|
140
|
+
declare function solve_phase2_and_phase3_fast(facelets: any, phase2_attempts?: number, cap?: number): any;
|
|
141
|
+
declare function solve_phase2_and_phase3_readable(facelets: any, phase2_attempts?: number, cap?: number): any[][] | undefined;
|
|
142
|
+
declare function phase3_benchmark(solver?: typeof solve_phase3_2gen): void;
|
|
143
|
+
declare function solver_benchmark(solver?: typeof solve): void;
|
|
144
|
+
declare namespace rng {
|
|
145
|
+
export { next };
|
|
146
|
+
export const is_crypto: boolean;
|
|
147
|
+
}
|
|
148
|
+
declare function evenpermutation8_to_index(perm: any): number;
|
|
149
|
+
declare function index_to_evenpermutation8(ind: any, perm: any): any;
|
|
150
|
+
declare let comb_lookup_tables: {};
|
|
151
|
+
declare let comb4_lookup_tables: {};
|
|
152
|
+
declare let solved_state: number[];
|
|
153
|
+
declare let move_U: any[];
|
|
154
|
+
declare let move_Ui: any[];
|
|
155
|
+
declare let move_X: number[];
|
|
156
|
+
declare let move_Y: number[];
|
|
157
|
+
declare let move_Z: number[];
|
|
158
|
+
declare let move_L: any[];
|
|
159
|
+
declare let move_F: any[];
|
|
160
|
+
declare let move_R: any[];
|
|
161
|
+
declare let move_Us: any[];
|
|
162
|
+
declare let move_Uw: any[];
|
|
163
|
+
declare let move_Uwi: any[];
|
|
164
|
+
declare let move_Lw: any[];
|
|
165
|
+
declare let move_Fw: any[];
|
|
166
|
+
declare let move_Rw: any[];
|
|
167
|
+
declare let colour_map: number[];
|
|
168
|
+
declare let corner_piece_facelets: number[][];
|
|
169
|
+
declare let edge_piece_facelets: number[][];
|
|
170
|
+
declare let centreA_piece_facelets: number[];
|
|
171
|
+
declare let centreB_piece_facelets: number[];
|
|
172
|
+
declare let moves: any[][];
|
|
173
|
+
declare let move_names: string[];
|
|
174
|
+
declare let move_permutations: {
|
|
175
|
+
cp: number[];
|
|
176
|
+
ep: number[];
|
|
177
|
+
ap: number[];
|
|
178
|
+
bp: number[];
|
|
179
|
+
}[];
|
|
180
|
+
declare let cached_mtables: {};
|
|
181
|
+
declare let cached_ptables: {};
|
|
182
|
+
declare let phase1_centre_colour_map: number[];
|
|
183
|
+
declare let phase2_centre_colour_map: number[];
|
|
184
|
+
declare let phase2_centre_indices: number[];
|
|
185
|
+
declare let phase2_keep: boolean[];
|
|
186
|
+
declare let phase2_corner_keep: boolean[];
|
|
187
|
+
declare let phase2_edge_reduction_map: any;
|
|
188
|
+
declare let phase2_corner_reduction_map: any;
|
|
189
|
+
declare let phase2_ce_mirror_map: any;
|
|
190
|
+
declare let phase3_2gen_centre_indices: number[];
|
|
191
|
+
declare let phase3_2gen_keep: boolean[];
|
|
192
|
+
declare let phase3_2gen_move_seqs: number[][][];
|
|
193
|
+
declare let phase3_2gen_nmoves: number;
|
|
194
|
+
declare let phase3_2gen_facelet_permutations: any[];
|
|
195
|
+
declare let phase3_2gen_piece_permutations: {
|
|
196
|
+
cp: number[];
|
|
197
|
+
ep: number[];
|
|
198
|
+
ap: number[];
|
|
199
|
+
bp: number[];
|
|
200
|
+
}[];
|
|
201
|
+
declare let phase3_2gen_move_orders: number[];
|
|
202
|
+
declare let phase3_2gen_depth_table: any;
|
|
203
|
+
declare function next(bound: any): number | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function randomFTOScrambleString(): Promise<any>;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
declare function counter(A: any): any[];
|
|
2
|
+
declare function counter(A: any): any[];
|
|
3
|
+
declare function counter(A: any): any[];
|
|
4
|
+
declare function factorial(n: any): any;
|
|
5
|
+
declare function factorial(n: any): any;
|
|
6
|
+
declare function factorial(n: any): any;
|
|
7
|
+
declare function C(n: any, k: any): number;
|
|
8
|
+
declare function C(n: any, k: any): number;
|
|
9
|
+
declare function C(n: any, k: any): number;
|
|
10
|
+
declare function permutation_to_index(perm: any): number;
|
|
11
|
+
declare function permutation_to_index(perm: any): number;
|
|
12
|
+
declare function permutation_to_index(perm: any): number;
|
|
13
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
14
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
15
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
16
|
+
declare function permutation_parity(A: any): number;
|
|
17
|
+
declare function permutation_parity(A: any): number;
|
|
18
|
+
declare function permutation_parity(A: any): number;
|
|
19
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
20
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
21
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
22
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
23
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
24
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
25
|
+
declare function comb_to_index(l: any): number;
|
|
26
|
+
declare function comb_to_index(l: any): number;
|
|
27
|
+
declare function comb_to_index(l: any): number;
|
|
28
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
29
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
30
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
31
|
+
declare function compose(A: any, B: any): any[];
|
|
32
|
+
declare function compose(A: any, B: any): any[];
|
|
33
|
+
declare function compose(A: any, B: any): any[];
|
|
34
|
+
declare function compose_o(A: any, B: any): any[][];
|
|
35
|
+
declare function compose_o(A: any, B: any): any[][];
|
|
36
|
+
declare function permutation_from_cycle(cycle: any, n: any): any[];
|
|
37
|
+
declare function permutation_from_cycle(cycle: any, n: any): any[];
|
|
38
|
+
declare function unsparsify_list(d: any, n: any): any[];
|
|
39
|
+
declare function unsparsify_list(d: any, n: any): any[];
|
|
40
|
+
declare function random_state(): any[];
|
|
41
|
+
declare function random_state(): any[][];
|
|
42
|
+
declare function stringify_move_sequence(move_sequence: any, no_wide?: boolean): any;
|
|
43
|
+
declare function stringify_move_sequence(move_sequence: any): any;
|
|
44
|
+
declare function stringify_move_sequence(move_sequence: any): any;
|
|
45
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
46
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
47
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
48
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
49
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
50
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
51
|
+
declare function generate_random_state_scramble(): any;
|
|
52
|
+
declare function generate_random_state_scramble(): any;
|
|
53
|
+
declare function generate_random_state_scramble(): any;
|
|
54
|
+
declare function generate_random_move_scramble(M: any, N: any): number[][];
|
|
55
|
+
declare function map_piece_to_face(loc: any, ori: any): string;
|
|
56
|
+
declare function create_svg_template(state: any, colour_scheme: any): Element;
|
|
57
|
+
declare function draw_state(svgel: any, state: any, colour_scheme: any): any;
|
|
58
|
+
declare function solve_phase1(state: any): any;
|
|
59
|
+
declare function search_phase1(flags: any, depth: any, last: any): any;
|
|
60
|
+
declare function index_phase2(facelets: any): any[];
|
|
61
|
+
declare function index_phase2(state: any): number[];
|
|
62
|
+
declare function solve_phase2(facelets: any): any;
|
|
63
|
+
declare function solve_phase2(state: any): any;
|
|
64
|
+
declare function index_phase3(state: any): number[];
|
|
65
|
+
declare function solve_phase3(state: any): any;
|
|
66
|
+
declare function index_phase4(state: any): number[];
|
|
67
|
+
declare function solve_phase4(state: any): any;
|
|
68
|
+
declare function solve_phase4_fast(state: any): any;
|
|
69
|
+
declare function solve(facelets: any, readable?: boolean): any[][];
|
|
70
|
+
declare function solve(state: any): any[];
|
|
71
|
+
declare function solve(state: any): any;
|
|
72
|
+
declare function cn_solve(state: any): any;
|
|
73
|
+
declare function generate_phase23_orientation_mtable(): any;
|
|
74
|
+
declare function generate_phase2_orientation_ptable(): any;
|
|
75
|
+
declare function generate_phase3_orientation_ptable(): any;
|
|
76
|
+
declare function generate_phase23_permutation_mtable(): any;
|
|
77
|
+
declare function generate_phase2_permutation_ptable(): any;
|
|
78
|
+
declare function generate_phase3_permutation_ptable(): any;
|
|
79
|
+
declare function generate_phase4_orientation_mtable(): any;
|
|
80
|
+
declare function generate_phase4_permutation_mtable(): any;
|
|
81
|
+
declare function generate_phase4_orientation_ptable(): any;
|
|
82
|
+
declare function generate_phase4_permutation_ptable(): any;
|
|
83
|
+
declare function generate_phase4_near_ptable_list(threshold: any): any;
|
|
84
|
+
declare function binary_search(A: any, x: any): boolean;
|
|
85
|
+
declare function cache_all_tables(): void;
|
|
86
|
+
declare function bfs(mtable: any, goal_states: any): Int8Array;
|
|
87
|
+
declare function bfs(mtable: any, goal_states: any): any[];
|
|
88
|
+
declare function bfs(mtable: any, goal_states: any): any[];
|
|
89
|
+
declare function ida_solve(indices: any, mtables: any, ptables: any): any;
|
|
90
|
+
declare function ida_solve(indices: any, mtables: any, ptables: any, max_bound: any): any;
|
|
91
|
+
declare function ida_search(indices: any, mtables: any, ptables: any, bound: any, last: any): number[][] | undefined;
|
|
92
|
+
declare function ida_search(indices: any, mtables: any, ptables: any, bound: any, last: any): any;
|
|
93
|
+
declare function phase4_ida_solve(indices: any): any;
|
|
94
|
+
declare function phase4_ida_search(indices: any, bound: any, last: any, mtable_o: any, mtable_p: any, ptable_o: any, ptable_p: any, ptable_n: any): any;
|
|
95
|
+
declare function phase4_ida_solve_gen(indices: any): Generator<any, void, any>;
|
|
96
|
+
declare function phase4_ida_search_gen(indices: any, bound: any, last: any, mtable_o: any, mtable_p: any, ptable_o: any, ptable_p: any, ptable_n: any): any;
|
|
97
|
+
declare function generate_hs_mtable(): any;
|
|
98
|
+
declare function generate_hs_u_ptable(): any;
|
|
99
|
+
declare function generate_hs_d_ptable(): any;
|
|
100
|
+
declare function index_hs(state: any): number[];
|
|
101
|
+
declare function solve_hs(state: any): any;
|
|
102
|
+
declare function solve_hs_twophase(state: any): any;
|
|
103
|
+
declare function generate_hybrid_scramble(): any[][];
|
|
104
|
+
declare function generate_fullseparate_mtable(): any;
|
|
105
|
+
declare function generate_fullseparate_ptable(): any;
|
|
106
|
+
declare function bfs5(mtable: any, goal_states: any): any[];
|
|
107
|
+
declare let PHASE4_THRESHOLD: number;
|
|
108
|
+
declare function evenpermutation10_to_index(perm: any): number;
|
|
109
|
+
declare function index_to_evenpermutation10(ind: any, perm: any): any;
|
|
110
|
+
declare let move_U: any[][];
|
|
111
|
+
declare let move_R: any[][];
|
|
112
|
+
declare let move_F: any[][];
|
|
113
|
+
declare let move_L: any[][];
|
|
114
|
+
declare let move_BL: any[][];
|
|
115
|
+
declare let move_BR: any[][];
|
|
116
|
+
declare let move_x2: any[][];
|
|
117
|
+
declare let move_y: any[][];
|
|
118
|
+
declare let move_rot: number[][];
|
|
119
|
+
declare let moves: any[][];
|
|
120
|
+
declare let move_names: string[];
|
|
121
|
+
declare let id: any[][];
|
|
122
|
+
declare let moves_full: any[];
|
|
123
|
+
declare namespace default_colour_scheme {
|
|
124
|
+
const U: string;
|
|
125
|
+
const L: string;
|
|
126
|
+
const F: string;
|
|
127
|
+
const R: string;
|
|
128
|
+
const BR: string;
|
|
129
|
+
const BL: string;
|
|
130
|
+
const DBR: string;
|
|
131
|
+
const DB: string;
|
|
132
|
+
const DBL: string;
|
|
133
|
+
const DFL: string;
|
|
134
|
+
const DFR: string;
|
|
135
|
+
const D: string;
|
|
136
|
+
}
|
|
137
|
+
declare let face_names: string[];
|
|
138
|
+
declare let rotation_amounts: number[][];
|
|
139
|
+
declare let translation_amounts: any;
|
|
140
|
+
declare let tables: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function randomMasterTetraminxScrambleString(): Promise<any>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare function counter(A: any): any[];
|
|
2
|
+
declare function counter(A: any): any[];
|
|
3
|
+
declare function counter(A: any): any[];
|
|
4
|
+
declare function factorial(n: any): any;
|
|
5
|
+
declare function factorial(n: any): any;
|
|
6
|
+
declare function factorial(n: any): any;
|
|
7
|
+
declare function C(n: any, k: any): number;
|
|
8
|
+
declare function C(n: any, k: any): number;
|
|
9
|
+
declare function C(n: any, k: any): number;
|
|
10
|
+
declare function permutation_to_index(perm: any): number;
|
|
11
|
+
declare function permutation_to_index(perm: any): number;
|
|
12
|
+
declare function permutation_to_index(perm: any): number;
|
|
13
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
14
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
15
|
+
declare function index_to_permutation(ind: any, n: any): number[];
|
|
16
|
+
declare function permutation_parity(A: any): number;
|
|
17
|
+
declare function permutation_parity(A: any): number;
|
|
18
|
+
declare function permutation_parity(A: any): number;
|
|
19
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
20
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
21
|
+
declare function index_to_evenpermutation(ind: any, n: any): number[];
|
|
22
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
23
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
24
|
+
declare function evenpermutation_to_index(perm: any): number;
|
|
25
|
+
declare function comb_to_index(l: any): number;
|
|
26
|
+
declare function comb_to_index(l: any): number;
|
|
27
|
+
declare function comb_to_index(l: any): number;
|
|
28
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
29
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
30
|
+
declare function index_to_comb(ind: any, ones: any, bits: any): any[];
|
|
31
|
+
declare function compose(A: any, B: any): any[];
|
|
32
|
+
declare function compose(A: any, B: any): any[];
|
|
33
|
+
declare function compose(A: any, B: any): any[];
|
|
34
|
+
declare function permutation_from_cycle(cycle: any, n: any): any[];
|
|
35
|
+
declare function permutation_from_cycle(cycle: any, n: any): any[];
|
|
36
|
+
declare function unsparsify_list(d: any, n: any): any[];
|
|
37
|
+
declare function unsparsify_list(d: any, n: any): any[];
|
|
38
|
+
declare function compose_state(state1: any, state2: any): any[][];
|
|
39
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
40
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
41
|
+
declare function apply_move_sequence(state: any, move_sequence: any): any;
|
|
42
|
+
declare function stringify_move_sequence(move_sequence: any, no_wide?: boolean): any;
|
|
43
|
+
declare function stringify_move_sequence(move_sequence: any): any;
|
|
44
|
+
declare function stringify_move_sequence(move_sequence: any): any;
|
|
45
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
46
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
47
|
+
declare function print_move_sequence(move_sequence: any): void;
|
|
48
|
+
declare function generate_random_state(): any[][];
|
|
49
|
+
declare function generate_random_state_scramble(): any;
|
|
50
|
+
declare function generate_random_state_scramble(): any;
|
|
51
|
+
declare function generate_random_state_scramble(): any;
|
|
52
|
+
declare function generate_scramble_sequence(): any;
|
|
53
|
+
declare function solve(facelets: any, readable?: boolean): any[][];
|
|
54
|
+
declare function solve(state: any): any[];
|
|
55
|
+
declare function solve(state: any): any;
|
|
56
|
+
declare function index_phase1(facelets: any): any[];
|
|
57
|
+
declare function index_phase1(state: any): number[];
|
|
58
|
+
declare function generate_phase1_corner_mtable(): any;
|
|
59
|
+
declare function generate_phase1_corner_ptable(): any;
|
|
60
|
+
declare function generate_phase1_edge_mtable(): any;
|
|
61
|
+
declare function generate_phase1_edge_mtable(): any;
|
|
62
|
+
declare function generate_phase1_edge_ptable(): any;
|
|
63
|
+
declare function generate_phase1_edge_ptable(): any;
|
|
64
|
+
declare function generate_phase1_separate_mtable(): any;
|
|
65
|
+
declare function generate_phase1_separate_ptable(): any;
|
|
66
|
+
declare function generate_phase2_corner_mtable(): any;
|
|
67
|
+
declare function generate_phase2_corner_mtable(): any;
|
|
68
|
+
declare function generate_phase2_edge_mtable(): any;
|
|
69
|
+
declare function generate_phase2_edge_mtable(): any;
|
|
70
|
+
declare function generate_phase2_edge_ptable(): any;
|
|
71
|
+
declare function bfs(mtable: any, goal_states: any): Int8Array;
|
|
72
|
+
declare function bfs(mtable: any, goal_states: any): any[];
|
|
73
|
+
declare function bfs(mtable: any, goal_states: any): any[];
|
|
74
|
+
declare function ida_solve(indices: any, mtables: any, ptables: any): any;
|
|
75
|
+
declare function ida_solve(indices: any, mtables: any, ptables: any, max_bound: any): any;
|
|
76
|
+
declare function ida_search(indices: any, mtables: any, ptables: any, bound: any, last: any): number[][] | undefined;
|
|
77
|
+
declare function ida_search(indices: any, mtables: any, ptables: any, bound: any, last: any): any;
|
|
78
|
+
declare function ida_solve_gen(indices: any, mtables: any, ptables: any, moves_left: any, commute: any): Generator<any, void, any>;
|
|
79
|
+
declare function ida_solve_gen(indices: any, mtables: any, ptables: any): Generator<any, void, any>;
|
|
80
|
+
declare function ida_search_gen(indices: any, mtables: any, ptables: any, bound: any, last: any, commute: any): any;
|
|
81
|
+
declare function ida_search_gen(indices: any, mtables: any, ptables: any, bound: any, last: any): any;
|
|
82
|
+
declare let move_L: any[][];
|
|
83
|
+
declare let move_B: any[][];
|
|
84
|
+
declare let move_R: any[][];
|
|
85
|
+
declare let move_F: any[][];
|
|
86
|
+
declare let move_l: any[][];
|
|
87
|
+
declare let move_b: any[][];
|
|
88
|
+
declare let move_r: any[][];
|
|
89
|
+
declare let move_f: any[][];
|
|
90
|
+
declare let solved: any[][];
|
|
91
|
+
declare let moves: any[][];
|
|
92
|
+
declare let move_names: string[];
|
|
93
|
+
declare let tetrad: number[];
|
|
94
|
+
declare let tables: {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cubing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"description": "A collection of JavaScript cubing libraries.",
|
|
5
5
|
"author": "The js.cubing.net team",
|
|
6
6
|
"type": "module",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@types/three": "^0.135.0",
|
|
12
12
|
"@types/web-bluetooth": "^0.0.12",
|
|
13
13
|
"comlink": "^4.3.1",
|
|
14
|
-
"three": "^0.
|
|
14
|
+
"three": "^0.137.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/eslint-parser": "^7.15.8",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"jszip": "^3.5.0",
|
|
33
33
|
"peggy": "^1.1.0",
|
|
34
34
|
"prettier": "^2.2.1",
|
|
35
|
-
"puppeteer": "^13.1.
|
|
35
|
+
"puppeteer": "^13.1.2",
|
|
36
36
|
"typescript": "^4.5.4",
|
|
37
37
|
"yargs": "^16.2.0"
|
|
38
38
|
},
|