#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <graphics.h>
void loadMenu();
void homeMenu();
void choice();
void introduce();
void createMap();
void enterNext();
void roleMove();
void mstMove();
void dieOver();
void crashJudge();
void showScore();
void gameOver();
int row=0;
int col=0;
int mstrow=0;
int mstcol=0;
int roleBlood=0;
int score=0;
int lvFlag=0;
int TOTAL=0;
#define t1 20
#define t2 12
#define t3 10
#define WIDTH 10
#define LENGTH 10
#define BLR 9
#define BLC1 0
#define BLC2 1
#define BLC3 2
int pMap[WIDTH][LENGTH]={
0};
const int pMap1[WIDTH][LENGTH]=
{
1,1,1,1,1,1,1,1,1,1,
1,9,0,0,0,0,0,0,9,1,
1,4,9,2,9,9,2,9,9,1,
1,0,2,9,9,9,9,2,0,1,
1,9,9,9,3,9,9,9,9,1,
1,0,2,9,9,9,9,2,0,1,
1,0,9,2,9,9,2,9,0,1,
1,0,0,0,0,0,0,0,0,1,
1,9,1,1,9,9,1,1,9,1,
10,10,10,9,9,9,9,9,9,9
};
const int pMap2[WIDTH][LENGTH]=
{
1,1,1,1,1,1,1,1,1,1,
1,0,0,2,0,0,0,0,0,1,
1,0,9,2,9,9,9,2,2,1,
1,0,9,2,9,9,9,9,0,1,
1,0,9,9,3,9,9,9,0,1,
1,9,9,9,9,9,2,9,9,1,
1,2,2,9,4,9,2,9,9,1,
1,9,9,9,9,9,2,9,9,1,
1,1,1,1,1,1,1,1,1,1,
10,10,