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

Method solvePetrus

app/src/main/java/solver/Petrus.java:238–247  ·  view source on GitHub ↗
(String scramble, int block)

Source from the content-addressed store, hash-verified

236 }
237
238 public static String solvePetrus(String scramble, int block) {
239 initp1();
240 boolean solveS2 = ((block >> 8) & 1) != 0;
241 if (solveS2) initp2();
242 StringBuilder s = new StringBuilder("\n");
243 for (int i = 0; i < 8; i++) {
244 if (((block >> i) & 1) != 0) s.append(petrus1(scramble, i, solveS2));
245 }
246 return s.toString();
247 }
248}

Callers 2

updateHintMethod · 0.95
solve333Method · 0.95

Calls 4

initp1Method · 0.95
initp2Method · 0.95
petrus1Method · 0.95
toStringMethod · 0.80

Tested by

no test coverage detected