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

Method solutionOpt

app/src/main/java/cs/sq12phase/Search.java:123–134  ·  view source on GitHub ↗
(FullCube c, int maxl, int verbose)

Source from the content-addressed store, hash-verified

121 }
122
123 private String solutionOpt(FullCube c, int maxl, int verbose) {
124 this.c = c;
125 this.verbose = verbose;
126 int shape = c.getShapeIdx();
127 for (length1 = Shape.ShapePrunOpt[shape] * PRUN_INC; length1 <= maxl * PRUN_INC; length1 += PRUN_INC) {
128 //Log.w("dct", "sq "+length1);
129 if (phase1Opt(shape, Shape.ShapePrunOpt[shape], length1, 0, -1, 0)) {
130 return sol_string;
131 }
132 }
133 return null;
134 }
135
136 private static int count0xf(int val) {
137 val &= val >> 1;

Callers 1

scrambleWCAMethod · 0.95

Calls 2

phase1OptMethod · 0.95
getShapeIdxMethod · 0.80

Tested by

no test coverage detected