1
1
import { Alg , AlgBuilder , LineComment , Newline } from "../../../cubing/alg" ;
2
2
import { experimentalEnsureAlg } from "../../../cubing/alg/Alg" ;
3
+ import { experimentalCountMovesETM } from "../../../cubing/notation" ;
3
4
import { puzzles } from "../../../cubing/puzzles" ;
4
5
import { randomScrambleForEvent } from "../../../cubing/scramble" ;
5
6
import {
@@ -17,20 +18,19 @@ import {
17
18
TwistyPlayer ,
18
19
TwistyPlayerConfig ,
19
20
} from "../../../cubing/twisty" ;
21
+ import { getStickeringGroup } from "../../../cubing/twisty/model/props/puzzle/display/StickeringProp" ;
22
+ import type { AlgWithIssues } from "../../../cubing/twisty/model/props/puzzle/state/AlgProp" ;
23
+ import type { SetupToLocation } from "../../../cubing/twisty/model/props/puzzle/state/SetupAnchorProp" ;
24
+ import { FreshListenerManager } from "../../../cubing/twisty/model/props/TwistyProp" ;
20
25
import { customElementsShim } from "../../../cubing/twisty/views/node-custom-element-shims" ;
21
26
import "../../../cubing/twisty/views/stream/TwistyStreamSource" ;
22
27
import type { TwistyStreamSource } from "../../../cubing/twisty/views/stream/TwistyStreamSource" ;
23
28
import type { TwistyAlgEditor } from "../../../cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor" ;
29
+ import { URLParamUpdater } from "../../../cubing/twisty/views/twizzle/url-params" ;
24
30
import { findOrCreateChild , findOrCreateChildWithClass } from "./dom" ;
25
31
import { examples } from "./examples" ;
26
32
import { APP_TITLE } from "./strings" ;
27
33
import { puzzleGroups , supportedPuzzles } from "./supported-puzzles" ;
28
- import type { SetupToLocation } from "../../../cubing/twisty/model/props/puzzle/state/SetupAnchorProp" ;
29
- import { URLParamUpdater } from "../../../cubing/twisty/views/twizzle/url-params" ;
30
- import type { AlgWithIssues } from "../../../cubing/twisty/model/props/puzzle/state/AlgProp" ;
31
- import { experimentalCountMoves } from "../../../cubing/notation" ;
32
- import { getStickeringGroup } from "../../../cubing/twisty/model/props/puzzle/display/StickeringProp" ;
33
- import { FreshListenerManager } from "../../../cubing/twisty/model/props/TwistyProp" ;
34
34
// import { setURLParams } from "./url-params";
35
35
36
36
// TODO: introduce concepts in `cubing/twisty` for "this is a valid twisty-player value, but not for the current puzzle".
@@ -266,7 +266,7 @@ class ControlPane {
266
266
this . twistyPlayer . experimentalModel . puzzleAlg . addFreshListener (
267
267
( algWithIssues : AlgWithIssues ) => {
268
268
if ( algWithIssues . issues . errors . length == 0 ) {
269
- this . moveCountDisplay . textContent = ` (${ experimentalCountMoves (
269
+ this . moveCountDisplay . textContent = ` (${ experimentalCountMovesETM (
270
270
algWithIssues . alg ,
271
271
) } ETM)`;
272
272
} else {
0 commit comments