MCPcopy Index your code
hub / github.com/MeigenChou/DCTimer-Android / getMi

Method getMi

app/src/main/java/solver/RTower.java:85–93  ·  view source on GitHub ↗
(int ep)

Source from the content-addressed store, hash-verified

83 }
84
85 private static int getMi(int ep) {
86 int[] arr = new int[7];
87 Utils.set8Perm(arr, 7, ep);
88 for (int i = 0; i < 3; i++) {
89 if (arr[i + 1] < 4) arr[i] = arr[i + 1];
90 else arr[i] = 6 - arr[i + 1];
91 }
92 return Utils.permToIdx(arr, 3, false);
93 }
94
95 public static String scramble() {
96 init();

Callers 1

init2Method · 0.95

Calls 2

set8PermMethod · 0.95
permToIdxMethod · 0.95

Tested by

no test coverage detected