Advertisement
LucasSousa

Python_MegaminxScrambler

Sep 14th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. import random
  2.  
  3. moves = ["++ ", "-- "]
  4. us = ["U\n", "U'\n"]
  5. r = str("R")
  6. d = str("D")
  7.  
  8. full_scramble = str("")
  9. for j in range(0, 9):
  10.     for i in range(0, 9):
  11.         if i % 2 is 0:
  12.             full_scramble += r + moves[random.randrange(0, 2)]
  13.         else:
  14.             full_scramble += d + moves[random.randrange(0, 2)]
  15.     full_scramble += us[random.randrange(0, 2)]
  16. print(full_scramble)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement