(int[] scramble)
| 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()]; |
nothing calls this directly
no test coverage detected