##### Rubik's cube scramble generator

This scrambler generates scrambles depending on which cube you choose

### Cubes:

1. 3x3x3
2. 2x2x2
3. Pyraminx
4. Ivy cube

Choose the number for the cube you want and then press enter.

If you want a new scramble, press enter.

You are viewing a single comment. View All
Bunnytoes (165)

I also added skewb to it I had to copy the entire code
import random, sys, os

scrambles3x3 = ["R","R'","R2","L","L'","L2","U","U'","U2","D","D'","D2","F","F'","F2","B","B'","B2"]
scrambles2x2 = ["R","R'","R2","L","L'","L2","U","U'","U2","D","D'","D2","F","F'","F2","B","B'","B2"]
scramblespyraminx = ["R","R'","R2","L","L'","L2","U","U'","U2","B","B'","B2","l","l'","r","r'","u","u'","b","b'"]
scramblesivy = ["R","R'","L","L'","U","U'"]
scramblesskewb = ["R","R'","R2","L","L'","L2","U","U'","U2","B","B'","B2","l","l'","r","r'","u","u'","b","b'"]
that = 'empty'
said = 'empty'
num = 20

while True:
print('What kind of Rubik\'s cube do you want to scramble?')
print('1. 3x3x3')
print('2. 2x2x2')
print('3. Pyraminx')
print('4. Ivy cube')
which = input('-')
if which == '1':
said = '3x3x3'
new = scrambles3x3.copy()
break
elif which == '2':
said = '2x2x2'
new = scrambles2x2.copy()
break
elif which == '3':
said = 'Pyraminx'
new = scramblespyraminx.copy()
break
elif which == '4':
said = 'Ivy cube'
new = scramblesivy.copy()
break
elif which == '5':
said = 'Skewb'
new = scramblesskewb.copy()
break
else:

os.system('clear')

while True: