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

Method gettwsmv

app/src/main/java/solver/Cube222.java:141–150  ·  view source on GitHub ↗
(int p, int m)

Source from the content-addressed store, hash-verified

139 }
140
141 private static int gettwsmv(int p, int m) {
142 //given orientation p<729 and move m<3, return new orientation number
143 //convert number into array;
144 int[] ps = new int[7];
145 Utils.idxToOri(ps, p, 7, true);
146 //perform move on array
147 twistMove(ps, m);
148 //convert array back to number
149 return Utils.oriToIdx(ps, 7, true);
150 }
151
152 private static void calcperm() {
153 //calculate solving arrays

Callers 1

calcpermMethod · 0.95

Calls 3

idxToOriMethod · 0.95
twistMoveMethod · 0.95
oriToIdxMethod · 0.95

Tested by

no test coverage detected