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

Method getCorner

app/src/main/java/solver/Roux.java:351–360  ·  view source on GitHub ↗
(int[] n, int c, int p, int o)

Source from the content-addressed store, hash-verified

349 }
350
351 private static void getCorner(int[] n, int c, int p, int o) {
352 int[] s = new int[4];
353 s[0] = p % 2; s[1] = 1 - s[0]; s[2] = o / 3; s[3] = o % 3;
354 int q = 2, t;
355 for (t = 7; t >= 0; t--)
356 if (c >= Utils.Cnk[t][q]) {
357 c -= Utils.Cnk[t][q--];
358 n[t] = s[q] << 3 | s[q + 2];
359 } else n[t] = -3;
360 }
361
362 private static String roux2(String scramble, int[] s1) {
363 String[] s = scramble.split(" ");

Callers 1

cornmvMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected