Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- moves = ["++ ", "-- "]
- us = ["U\n", "U'\n"]
- r = str("R")
- d = str("D")
- full_scramble = str("")
- for j in range(0, 9):
- for i in range(0, 9):
- if i % 2 is 0:
- full_scramble += r + moves[random.randrange(0, 2)]
- else:
- full_scramble += d + moves[random.randrange(0, 2)]
- full_scramble += us[random.randrange(0, 2)]
- print(full_scramble)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement