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

Method scrambleEG

app/src/main/java/solver/Cube222.java:403–422  ·  view source on GitHub ↗
(int type)

Source from the content-addressed store, hash-verified

401 }
402
403 public static String scrambleEG(int type) {
404 String scramble;
405 do {
406 switch (type) {
407 case 0:
408 randomEG(4, "X");
409 break;
410 case 1:
411 randomEG(2, "X");
412 break;
413 case 2:
414 randomEG(1, "X");
415 break;
416 }
417 int p = Utils.get8Perm(state[0], 7);
418 int o = Utils.oriToIdx(state[1], 7, true);
419 scramble = solve(p, o);
420 } while (scramble.equals("error"));
421 return scramble;
422 }
423
424 public static String scramblePBL() {
425 String scramble;

Callers 1

generateScrambleMethod · 0.95

Calls 5

randomEGMethod · 0.95
get8PermMethod · 0.95
oriToIdxMethod · 0.95
solveMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected