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

Method flipMove

app/src/main/java/solver/Floppy.java:47–51  ·  view source on GitHub ↗
(int eo, int m)

Source from the content-addressed store, hash-verified

45 }
46
47 private static int flipMove(int eo, int m) {
48 Utils.idxToFlip(arr, eo, 4, false);
49 arr[m] = 1 - arr[m];
50 return Utils.flipToIdx(arr, 4, false);
51 }
52
53 private static boolean search(int cp, int eo, int d, int lm) {
54 if (d == 0) return cp == 0 && eo == 0;

Callers 2

FloppyClass · 0.95
searchMethod · 0.95

Calls 2

idxToFlipMethod · 0.95
flipToIdxMethod · 0.95

Tested by

no test coverage detected