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

Method rot

app/src/main/java/cs/threephase/Edge3.java:474–498  ·  view source on GitHub ↗
(int r)

Source from the content-addressed store, hash-verified

472 }
473
474 void rot(int r) {
475 isStd = false;
476 switch (r) {
477 case 0:
478 move(14);
479 move(17);
480 break;
481 case 1:
482 circlex(11, 5, 10, 6);//r
483 circlex(5, 10, 6, 11);
484 circlex(1, 2, 3, 0);
485 circlex(4, 9, 7, 8);//l'
486 circlex(8, 4, 9, 7);
487 circlex(0, 1, 2, 3);
488 break;
489 case 2:
490 swapx(4, 5); swapx(5, 4);
491 swapx(11, 8); swapx(8, 11);
492 swapx(7, 6); swapx(6, 7);
493 swapx(9, 10); swapx(10, 9);
494 swapx(1, 1); swapx(0, 0);
495 swapx(3, 3); swapx(2, 2);
496 break;
497 }
498 }
499
500 void rotate(int r) {
501 while (r >= 2) {

Callers 2

initRaw2SymMethod · 0.95
rotateMethod · 0.95

Calls 3

moveMethod · 0.95
circlexMethod · 0.95
swapxMethod · 0.95

Tested by

no test coverage detected