From f77da344f54b429fec6d157ac68c8c542a53e0bf Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 22 Oct 2022 20:18:49 +0800 Subject: [PATCH] save project --- my_Tetris.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/my_Tetris.py b/my_Tetris.py index f503a6d..8f1ac92 100644 --- a/my_Tetris.py +++ b/my_Tetris.py @@ -41,11 +41,13 @@ L = [[(-1, 0), (0, 0), (1, 0), (1, 1)], shape_list = [I, J, L, O, S, T, Z] # 7种类型俄罗斯方块 # 一些RGB颜色 -cube_colors = [ - (204, 153, 153), (102, 102, 153),(153, 0, 102), - (255, 204, 0), (204, 0, 51),(255, 0, 51), (0, 102, 153), - (153, 0, 51), (204, 255, 102), (255, 153, 0)] +cube_colors = [(204, 153, 153), (102, 102, 153),(153, 0, 102), + (255, 204, 0), (204, 0, 51),(255, 0, 51), (0, 102, 153), + (153, 0, 51), (204, 255, 102), (255, 153, 0)] +num_list = [] +for i in range(25): + num_list[] center = [2, 8] # 第2行第8列 shape = random.choice(shape_list) index = random.randint(0, len(shape)-1) -- libgit2 0.25.0