damyan91

Untitled

Jun 1st, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. case "right":
  2.  
  3. for (int iterations = 0; iterations < moves; iterations++)
  4. {
  5. for (int col = rubik.Length - 1; col > 0; col--)
  6. {
  7. var temp = rubik[rowCol][col];
  8. var next = rubik[rowCol][col - 1];
  9. rubik[rowCol][col - 1] = temp;
  10. rubik[rowCol][col] = next;
  11. }
  12. }
  13.  
  14. break;
Advertisement
Add Comment
Please, Sign In to add comment