Commit a9848fef by BellCodeEditor

save project

parent db5d189b
Showing with 2 additions and 2 deletions
...@@ -47,7 +47,7 @@ cube_colors = [ ...@@ -47,7 +47,7 @@ cube_colors = [
(255, 204, 0), (204, 0, 51),(255, 0, 51), (0, 102, 153), (255, 204, 0), (204, 0, 51),(255, 0, 51), (0, 102, 153),
(153, 0, 51), (204, 255, 102), (255, 153, 0)] (153, 0, 51), (204, 255, 102), (255, 153, 0)]
num_list=[] num_list=[]
for i in range(25) for i in range(25):
num_list.append([0]*15) num_list.append([0]*15)
def check(center): def check(center):
for cube in current_shape: for cube in current_shape:
...@@ -57,7 +57,7 @@ def check(center): ...@@ -57,7 +57,7 @@ def check(center):
or cube[1] >grid_num_width: or cube[1] >grid_num_width:
return False return False
if num_list[cube[0]-1][cube[1]-1] != 0: if num_list[cube[0]-1][cube[1]-1] != 0:
renurn False return False
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
......
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