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

Method random3Corner

app/src/main/java/cs/min2phase/Tools.java:322–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320 }
321
322 public static String random3Corner() {
323 int[] c = new int[8];
324 Utils.idxToComb(c, gen.nextInt(56), 3, 8);
325 int[] cp = new int[8], co = new int[8];
326 for (int i = 0; i < 8; i++) {
327 if (c[i] != 0) co[i] = cp[i] = -1;
328 else {
329 cp[i] = i;
330 co[i] = 0;
331 }
332 }
333 return randomState(cp, co, STATE_SOLVED, STATE_SOLVED);
334 }
335
336 public static String random3Edge() {
337 int[] e = new int[12];

Callers 1

generateScrambleMethod · 0.95

Calls 2

idxToCombMethod · 0.95
randomStateMethod · 0.95

Tested by

no test coverage detected