MCPcopy Create free account
hub / github.com/MeigenChou/DCTimer-Android / updateHint

Method updateHint

app/src/main/java/scrambler/Scrambler.java:181–214  ·  view source on GitHub ↗
(int idx)

Source from the content-addressed store, hash-verified

179 }
180
181 public void updateHint(int idx) {
182 if (idx == 0)
183 hint = "";
184 else if (is333Scramble()) {
185 switch (idx) {
186 case 1:
187 hint = Cross.solveCross(scramble, APP.solverType[1]);
188 break;
189 case 2:
190 hint = Cross.solveXcross(scramble, APP.solverType[1]);
191 break;
192 case 3:
193 hint = EOline.solveEoline(scramble, APP.solverType[1]);
194 break;
195 case 4:
196 hint = Roux.solveRoux1(scramble, APP.solverType[3]);
197 break;
198 case 5:
199 hint = Petrus.solvePetrus(scramble, APP.solverType[2]);
200 break;
201 case 6:
202 hint = Cross.solveEofc(scramble, APP.solverType[1]);
203 break;
204 }
205 } else if (isSqScramble()) {
206 hint = Sq1Shape.solve(idx, scramble);
207 } else if (is222Scramble()) {
208 if (idx == 1)
209 hint = Cube2Face.solveFace(scramble, APP.solverType[4]);
210 else hint = Cube2Layer.solveFirstLayer(scramble, APP.solverType[4]);
211 } else if (isPyrScramble()) {
212 hint = PyraminxV.solveV(scramble, idx);
213 }
214 }
215
216 public void parseScramble(int category, String scramble) {
217 this.category = category;

Callers 4

runMethod · 0.80
onClickMethod · 0.80
show333HintMethod · 0.80
show222HintMethod · 0.80

Calls 14

is333ScrambleMethod · 0.95
solveCrossMethod · 0.95
solveXcrossMethod · 0.95
solveEolineMethod · 0.95
solveRoux1Method · 0.95
solvePetrusMethod · 0.95
solveEofcMethod · 0.95
isSqScrambleMethod · 0.95
solveMethod · 0.95
is222ScrambleMethod · 0.95
solveFaceMethod · 0.95
solveFirstLayerMethod · 0.95

Tested by

no test coverage detected