#include <stdio.h>
#include <getch.h>
#include <time.h>
#include <stdlib.h>
int main (int argc,const char* argv[])
{
//定义迷宫地图
char maze[10][10] = {
{1,1,1,1,1,1,1,1,1,1},
{1,0,1,0,0,0,0,0,1,1},
{1,2,1,0,1,0,1,1,1,1},
{1,0,0,0,1,0,1,0,0,1},
{1,0,1,0,1,0,0,0,1,1},
{1,0,1,0,1,1,1,1,0,0},
{1,0,1,0,1,1,0,0,0,1},
{1,0,1,0,0,0,0,1,1,1},
{1,0,0,0,1,1,0,0,0,1},
{1,1,1,1,1,1,1,1,1,1}
};
//定义老鼠坐标
int mouse_x =2,mouse_y=1;
//获取开始时间
time_t start_time = time(NULL);
for(;;)
{
//清理屏幕
system("clear");
for(int i=0;i<10;i++)
{