Skip to content

Commit

Permalink
[puzzles] Fix puzzles exports.
Browse files Browse the repository at this point in the history
We had some test exports lying around. Something was triggering an `esbuild` bug.
  • Loading branch information
lgarron committed Jan 15, 2021
1 parent 9ab2fbb commit fed71d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/cubing/bluetooth/gan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Quaternion } from "three";
import { BareBlockMove, BlockMove } from "../alg";
import { KPuzzle } from "../kpuzzle";
import { KPuzzleDefinition } from "../puzzle-geometry/interfaces";
import * as puzzles from "../puzzles";
import { puzzles } from "../puzzles";
import {
BluetoothConfig,
BluetoothPuzzle,
Expand Down Expand Up @@ -330,7 +330,7 @@ export class GanCube extends BluetoothPuzzle {
).moveCounter();
debugLog("Initial Move Counter:", initialMoveCounter);
const cube = new GanCube(
await puzzles.koob333.def(),
await puzzles["3x3x3"].def(),
ganCubeService,
server,
physicalStateCharacteristic,
Expand Down
9 changes: 2 additions & 7 deletions src/cubing/puzzles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ import { skewb } from "./implementations/skewb";
import { square1 } from "./implementations/square1";
import { PuzzleManager } from "./PuzzleManager";

module.exports["222"] = cube2x2x2;
module.exports["cube333"] = cube3x3x3;

export const koob333 = cube3x3x3;

export { cube2x2x2 as ads };

export const puzzles: Record<string, PuzzleManager> = {
/******** Start of WCA Puzzles *******/
"3x3x3": cube3x3x3,
Expand All @@ -39,6 +32,8 @@ export const puzzles: Record<string, PuzzleManager> = {
fto,
};

export { cube2x2x2, cube3x3x3 };

// // TODO: find a better way to share these defs.
// for (const puzzleName of [
// // "2x2x2",
Expand Down

0 comments on commit fed71d6

Please sign in to comment.