/*
//
定义了一个RandBlock[4][4]用来存方块
BlockGroup[][]用来绘制界面
//
*/
#include <conio.h>
#include<iostream>
#include<time.h>
#include<windows.h>
#include <stdlib.h>
using namespace std;
#define Level 100//初始难度;
#define Score 0//初始分数;
const int WallWide_x = 20;//墙的宽度
const int WallLength_y = 28;//墙的长度
int TempGroup[4][4];//用于旋转时存放方块
int BlockGroup[WallWide_x][WallLength_y];//定义一个数组用来显示界面,及初始化背景
int RandBlock[2][4];//定义一个数组用来存方块
int main()
{
void ShowFirstWindow();
void CreateBlock(int RandBlock[2][4]);//创建随机方块
void GotoXY(int, int);//设置光标位置
void PutBlockToBack();//把方块放到背景里面去
void BlockMoveDown();
void ShowGame();
//控制方块移动
void BlockMoveLeft();
void BlockMoveRight();
void BlockRotate();
void BlockMoveDownFast();
//
srand((unsigned(time(NULL))));//以时间作为种子产生随机数
for (int i = 0; i < WallLength_y; i++)//y坐标
{
BlockG