Commit aaf7ae4a by BellCodeEditor

save project

parent 2d4350a6
Showing with 8 additions and 2 deletions
......@@ -2,4 +2,10 @@ center = [2,8]
shape = random.choice(shape_list)
inddex = random.rndint(0,len(shape)-1)
current_shape = shape[index]
color = rendom.choice(cube_color)
\ No newline at end of file
color = rendom.choice(cube_color)
def check(center):
for cube in surrent_shape:
cube = (cube[0]+center[0],cube[1]+center[1])
if cube[0]<1 or cube[1]<1 or cube[0]>grid_nu
or cube[1]>grid_nu_width:
return False
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment