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

Method fromScramble

app/src/main/java/cs/min2phase/Tools.java:392–402  ·  view source on GitHub ↗
(int[] scramble)

Source from the content-addressed store, hash-verified

390
391
392 public static String fromScramble(int[] scramble) {
393 CubieCube c1 = new CubieCube();
394 CubieCube c2 = new CubieCube();
395 CubieCube tmp;
396 for (int i = 0; i < scramble.length; i++) {
397 CubieCube.CornMult(c1, CubieCube.moveCube[scramble[i]], c2);
398 CubieCube.EdgeMult(c1, CubieCube.moveCube[scramble[i]], c2);
399 tmp = c1; c1 = c2; c2 = tmp;
400 }
401 return Util.toFaceCube(c1);
402 }
403
404 public static String fromScramble(String s) {
405 int[] arr = new int[s.length()];

Callers

nothing calls this directly

Calls 4

CornMultMethod · 0.95
EdgeMultMethod · 0.95
toFaceCubeMethod · 0.95
lengthMethod · 0.80

Tested by

no test coverage detected