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

Method rot

app/src/main/java/cs/threephase/Center1.java:180–205  ·  view source on GitHub ↗
(int r)

Source from the content-addressed store, hash-verified

178 }
179
180 private void rot(int r) {
181 switch (r) {
182 case 0:
183 move(ux2);
184 move(dx2);
185 break;
186 case 1:
187 move(rx1);
188 move(lx3);
189 break;
190 case 2:
191 swap(ct, 0, 3, 1, 2, 1);
192 swap(ct, 8, 11, 9, 10, 1);
193 swap(ct, 4, 7, 5, 6, 1);
194 swap(ct, 12, 15, 13, 14, 1);
195 swap(ct, 16, 19, 21, 22, 1);
196 swap(ct, 17, 18, 20, 23, 1);
197 break;
198 case 3:
199 move(ux1);
200 move(dx3);
201 move(fx1);
202 move(bx3);
203 break;
204 }
205 }
206 /*
207 0 I
208 1 y2

Callers 5

initMethod · 0.95
getsymMethod · 0.95
rotateMethod · 0.95
getSolvedSymMethod · 0.95
initSymMethod · 0.95

Calls 2

moveMethod · 0.95
swapMethod · 0.45

Tested by

no test coverage detected