-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export declare enum CubePlane { | ||
X = "x", | ||
Y = "y", | ||
Z = "z" | ||
} | ||
export declare enum Side { | ||
L = "L", | ||
R = "R", | ||
U = "U", | ||
D = "D", | ||
F = "F", | ||
B = "B" | ||
} | ||
export declare enum Modifier { | ||
Double = "2", | ||
CounterClockwise = "'", | ||
Clockwise = "" | ||
} | ||
//# sourceMappingURL=enums.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export declare const cube: (size?: number, numTurns?: number) => String; | ||
export declare const megaminx: () => String; | ||
export declare const pyraminx: (numTurns?: number) => String; | ||
export declare const skewb: (numTurns?: number) => String; | ||
export declare const square1: (numTurns?: number) => any; | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* planes of rotation | ||
* for examples a cube rototes on x,y,z axis | ||
* we don't want to generate two turns in a | ||
* row on the same axis | ||
*/ | ||
export declare type RotationPlane = string; | ||
/** | ||
* possible faces to rotate on the puzzle | ||
* (ex, 3x3 has UFLRB) | ||
*/ | ||
export declare type Face = string; | ||
/** | ||
* clockwise, counterclockwise... | ||
*/ | ||
export declare type Modifer = string; | ||
export declare type PlaneMapping = { | ||
[face: string]: RotationPlane; | ||
}; | ||
export declare type Turn = { | ||
face: Face; | ||
depth: number; | ||
modifier: Modifer; | ||
}; | ||
export declare const generateCubeScramble: (size?: number, numTurns?: number) => Turn[]; | ||
/** | ||
* generates a pochman scramble for the megaminx | ||
*/ | ||
export declare const generateMegaminxScramble: (sequenceLength?: number, numSequences?: number) => Turn[][]; | ||
export declare const generateSkewbScramble: (numTurns?: number) => Turn[]; | ||
export declare const generatePyraminxScramble: (numTurns?: number) => Turn[]; | ||
export declare const generateSquare1Scramble: (numTurns?: number) => any; | ||
//# sourceMappingURL=scrambler.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export declare function randomElement<T>(array: T[]): T; | ||
export declare function shuffle<T>(array: T[]): T[]; | ||
//# sourceMappingURL=util.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./dist/", | ||
"noImplicitAny": true, | ||
"noImplicitAny": false, | ||
"module": "es6", | ||
"target": "es5", | ||
"target": "es6", | ||
"allowJs": true, | ||
} | ||
} | ||
"moduleResolution": "node", | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"declaration": true, | ||
"declarationMap": true | ||
}, | ||
"include": [ | ||
"./src" | ||
], | ||
"exclude": [ | ||
"./tests", | ||
"./node_modules" | ||
] | ||
} |