Commit f77da344 by BellCodeEditor

save project

parent c6e39f9d
Showing with 6 additions and 4 deletions
...@@ -41,11 +41,13 @@ L = [[(-1, 0), (0, 0), (1, 0), (1, 1)], ...@@ -41,11 +41,13 @@ L = [[(-1, 0), (0, 0), (1, 0), (1, 1)],
shape_list = [I, J, L, O, S, T, Z] # 7种类型俄罗斯方块 shape_list = [I, J, L, O, S, T, Z] # 7种类型俄罗斯方块
# 一些RGB颜色 # 一些RGB颜色
cube_colors = [ cube_colors = [(204, 153, 153), (102, 102, 153),(153, 0, 102),
(204, 153, 153), (102, 102, 153),(153, 0, 102), (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 = []
for i in range(25):
num_list[]
center = [2, 8] # 第2行第8列 center = [2, 8] # 第2行第8列
shape = random.choice(shape_list) shape = random.choice(shape_list)
index = random.randint(0, len(shape)-1) index = random.randint(0, len(shape)-1)
......
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