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) ) ) {