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

Method move2fcn

app/src/main/java/solver/Skewb.java:181–198  ·  view source on GitHub ↗
(int d)

Source from the content-addressed store, hash-verified

179 }
180
181 static String move2fcn(int d) {
182 String[] move2str = { "R", "U", "L", "B" };
183 StringBuilder sb = new StringBuilder();
184 for (int i = 1; i <= d; i++) {
185 int mov = seq[i] >> 1;
186 int pow = seq[i] & 1;
187 if (mov == 3) {
188 for (int j=0; j<=pow; j++) {
189 String temp = move2str[2];
190 move2str[2] = move2str[1];
191 move2str[1] = move2str[0];
192 move2str[0] = temp;
193 }
194 }
195 sb.append(move2str[mov]).append(suff[pow]).append(" ");
196 }
197 return sb.toString();
198 }
199}

Callers 2

scrambleMethod · 0.95
scrambleL2LMethod · 0.95

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected