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

Method twist

app/src/main/java/solver/Sq1Shape.java:41–45  ·  view source on GitHub ↗
(int idx)

Source from the content-addressed store, hash-verified

39 }
40
41 private static int twist(int idx) {
42 int newTop = (getTop(idx) & 0xF80) | (getBottom(idx) & 0x7F);
43 int newBottom = (getBottom(idx) & 0xF80) | (getTop(idx) & 0x7F);
44 return (newBottom << 12) | newTop;
45 }
46
47 private static boolean canTwist(int idx) {
48 int top = getTop(idx);

Callers 5

applyMoveMethod · 0.95
initfMethod · 0.95
inittMethod · 0.95
searchTwsMethod · 0.95
solveTrnMethod · 0.95

Calls 2

getTopMethod · 0.95
getBottomMethod · 0.95

Tested by

no test coverage detected