Commit a356b5ae by BellCodeEditor

save project

parent 6544b5cf
Showing with 1 additions and 1 deletions
...@@ -54,7 +54,7 @@ current_shape = [(0, -1), (0, 0), (0, 1), (-1, 0)] ...@@ -54,7 +54,7 @@ current_shape = [(0, -1), (0, 0), (0, 1), (-1, 0)]
def check(center): def check(center):
for cube in current_shape: for cube in current_shape:
if cube[0] < 1 or cube[1] < 1 or cube[0] > gird_num_height\ if cube[0] < 1 or cube[1] < 1 or cube[0] > grid_num_height\
or cube[1] > gird_num_width: or cube[1] > gird_num_width:
return False return False
......
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