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

Method rot

app/src/main/java/cs/threephase/Center2.java:159–178  ·  view source on GitHub ↗
(int r)

Source from the content-addressed store, hash-verified

157 }
158
159 private void rot(int r) {
160 switch (r) {
161 case 0:
162 move(ux2);
163 move(dx2);
164 break;
165 case 1:
166 move(rx1);
167 move(lx3);
168 break;
169 case 2:
170 swap(ct, 0, 3, 1, 2, 1);
171 swap(ct, 8, 11, 9, 10, 1);
172 swap(ct, 4, 7, 5, 6, 1);
173 swap(ct, 12, 15, 13, 14, 1);
174 swap(rl, 0, 3, 5, 6, 1);
175 swap(rl, 1, 2, 4, 7, 1);
176 break;
177 }
178 }
179
180
181 private void move(int m) {

Callers 2

initRlMethod · 0.95
initCtMethod · 0.95

Calls 2

moveMethod · 0.95
swapMethod · 0.45

Tested by

no test coverage detected