from ursina import *
from utils import *
cols = [color.pink, color.orange, color.white,
color.yellow, color.blue, color.green]
app = Ursina()
n = 3
lst = []
for z in range(n):
for y in range(n):
for x in range(n):
c = Entity(model='cube',
position=(x-1, y-1, z-1),
texture='white_cube',
double_sided=True)
plane(c, left, color=cols[0])
plane(c, right,color=cols[1])
plane(c, up, color=cols[2])
plane(c, down,color=cols[3])
plane(c, forward, color=cols[4])
plane(c, backward,color=cols[5])
lst.append(c)
game = rubiks(cubes=lst, n=3)
rand(game)
check(game)
EditorCamera()
app.run()