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

Method getprmmv

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

Source from the content-addressed store, hash-verified

128 }
129
130 private static int getprmmv(int p, int m) {
131 //given position p<5040 and move m<3, return new position number
132 //convert number into array;
133 int[] ps = new int[7];
134 Utils.set8Perm(ps, 7, p);
135 //perform move on array
136 permMove(ps, m);
137 //convert array back to number
138 return Utils.get8Perm(ps, 7);
139 }
140
141 private static int gettwsmv(int p, int m) {
142 //given orientation p<729 and move m<3, return new orientation number

Callers 1

calcpermMethod · 0.95

Calls 3

set8PermMethod · 0.95
permMoveMethod · 0.95
get8PermMethod · 0.95

Tested by

no test coverage detected