From e6bfa98714586b3ae8cdb828f4ac090261f8c45e Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 7 Jan 2019 11:48:02 +0800 Subject: [PATCH] first commit --- ...斯方块.cpp => 俄罗斯方块游戏.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) rename 俄罗斯方块.cpp => 俄罗斯方块游戏.cpp (98%) diff --git a/俄罗斯方块.cpp b/俄罗斯方块游戏.cpp similarity index 98% rename from 俄罗斯方块.cpp rename to 俄罗斯方块游戏.cpp index 0585a17..80b5642 100644 --- a/俄罗斯方块.cpp +++ b/俄罗斯方块游戏.cpp @@ -464,9 +464,9 @@ void Make(struct Tetris *tetris) case 18: // ˳180 7 { color(11); - a[tetris->x][tetris->y-2]=b[1]; + a[tetris->x][tetris->y+1]=b[1]; a[tetris->x][tetris->y-1]=b[2]; - a[tetris->x-2][tetris->y]=b[3]; + a[tetris->x-2][tetris->y+1]=b[3]; break; } @@ -474,8 +474,8 @@ void Make(struct Tetris *tetris) { color(12); a[tetris->x+2][tetris->y]=b[1]; - a[tetris->x+4][tetris->y]=b[2]; - a[tetris->x][tetris->y-1]=b[3]; + a[tetris->x-2][tetris->y]=b[2]; + a[tetris->x-2][tetris->y-1]=b[3]; break; } } @@ -846,22 +846,22 @@ int ifMove(struct Tetris *tetris) ( // ˳90 7 tetris->flag==17 && ( a[tetris->x-2][tetris->y]==0&& - a[tetris->x-4][tetris->y]==0&& - a[tetris->x][tetris->y+1]==0) + a[tetris->x+2][tetris->y+1]==0&& + a[tetris->x+2][tetris->y]==0) ) || ( //˳180 7 tetris->flag==18 && - ( a[tetris->x][tetris->y-2]==0&& + ( a[tetris->x][tetris->y+1]==0&& a[tetris->x][tetris->y-1]==0&& - a[tetris->x-2][tetris->y]==0) + a[tetris->x-2][tetris->y+1]==0) ) || ( //˳270 7 tetris->flag==19 && ( a[tetris->x+2][tetris->y]==0&& - a[tetris->x+4][tetris->y]==0&& - a[tetris->x][tetris->y-1]==0) + a[tetris->x-2][tetris->y]==0&& + a[tetris->x-2][tetris->y-1]==0) ) ) {