#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<time.h>
#include<windows.h>
#define N 15
/*定义全局变量*/
int qipan1[N][N];
int qipan[N][N];
int a[2];
int wanjia=11 ; /*玩家*/
int computer=12;
int *chess=qipan;
int *qizi;
enum color{black=11,white=12};
void tuan1()
{
printf("╭⌒╮打雷啦━┅~ ¤ ╭⌒╮ ╭⌒╮ ╭⌒╮打雷啦━┅~ ¤ ╭⌒╮ ╭⌒╮ \n");
printf(",)))),"")~~ ,""~)) ,"" ╭⌒╭⌒╮╭⌒╮~╭⌒╮)), )))), )\n");
printf(",)))),"")~~ ,""~)) ,"" ,)))),"")~~ ,""~)) ,"" ,)))),\n");
printf(" ◢◤ ◢◤ ◢◤ \n");
printf(" ◢◤ ◢◤ ◢◤\n");
printf(" ◢◤ ◢◤ ◢◤\n");
printf(" ◢██◤ ◢◤ ◢██◤\n");
printf(" ◢◤ ◢◤ ◢◤\n");
printf(" ◢◤ ◢████◤ ◢◤\n");
printf(" ◢◤ ◢◤ ◢◤\n");
printf(" /↙ ◢◤ /↙\n");
printf(" ◤ ◢◤ ◤\n");
printf(" ◢◤\n");
printf(" ◢◤ \n");
printf(" /↙ \n");
printf(" /↙ \n");
printf(" ◤ \n");
printf(" \n");
printf("\n\n\n");
printf(" ╱◥█◣ ╱◥█◣ ╱◥█◣ ╱◥█◣ \n");
printf(" ︱田︱田︱︱田︱田︱beyondthl ︱田︱田︱︱田︱田︱ \n");
printf(" ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬ \n");
}
void tuan2()
{
long start=0,end=0;
system( "color 0F");
tuan1();
start=clock();
end=clock();
while((end-start)<3200)
{
end=clock();
if(end-start<=500)
{
system("cls");
system( "color 7D");
tuan1();
}
else if (end-start<=1000)
{
system("cls");
system( "color 0F");
tuan1();
}
else if(end-start<=1500)
{
system("cls");
system( "color 7D");
tuan1();
}
else if (end-start<=2000)
{
system("cls");
system( "color 0F");
tuan1();
}
else if(end-start<=2300)
{
system("cls");
system( "color 7F");
}
else if(end-start<=2600)
{
system("cls");
system( "color 8D");
}
else if(end-start<=2300)
{
system("cls");
system( "color 0F");
tuan1();
}
else if(end-start<=2600)
{
system("cls");
system( "color 7D");
}
else if(end-start<=2300)
{
system("cls");
system( "color 8F");
tuan1();
}
else if(end-start<=2600)
{
system("cls");
system( "color 0D");
}
else if(end-start<=2300)
{
system("cls");
system( "color 7F");
tuan1();
}
else if(end-start<=2600)
{
system("cls");
system( "color 8D");
}
else if(end-start<=2300)
{
system("cls");
system( "color 0F");
tuan1();
}
else if(end-start<=2600)
{
system("cls");
system( "color 7D");
}
else if(end-start<=2900)
{
system("cls");
system( "color 8F");
tuan1();
}
else if(end-start<=3200)
{
system("cls");
system( "color 0D");
}
}
}
void wu()
{
system( "color 0C");
printf(" ●●●●●●●\n");
printf(" ● \n");
printf(" ● \n");
printf(" ●●●●●●●\n");
printf(" ● ●\n");
printf(" ● ● \n");
printf(" ● ● \n");
printf(" ● ●\n");
printf(" ●●●●●●● \n");
}
void wuzi()
{
system( "color 0D");
printf(" ●●●●●●● ●●●●●●\n");
printf(" ● ● \n");
printf(" ● ● \n");
printf(" ●●●●●●● ●●●●●●●●\n");
printf(" ● ● ● \n");
printf(" ● ● ● \n");
printf(" ● ● ● ● \n");
printf(" ● ● ● ● \n");
printf(" ●●●●●●● ●● \n");
}
void wuziqi()
{
system( "color 0E");
printf(" ●●●●●●● ●●●●●● ● ● ●\n");
printf(" ● ● ● ● ●\n");
printf(" ● ● ● ● ●\n");
printf(" ●●●●●●● ●●●●●●●● ●●●● ●●●●●●●●\n");
printf(" ● ● ● ●●● ● ● ●\n");
printf(" ● ● ● ● ● ● ● ● ●\n");
printf(" ● ● ● ● ● ●●●●●●●●\n");
printf(" ● ● ● ● ● ● ● \n");
printf(" ●●●●●●● ●● ● ● ●\n");
}
void tuan3()
{
void pause();
system("cls");
wu();
pause(800);
system("cls");
wuzi();
pause(800);
system("cls");
wuziqi();
}
void menu()
{
printf("━┓ \n");
printf("┃┃┃\n");
printf("┃┏┛ ||||||||||||||||\n");
printf("┗┛s; ||||||||||||||||||||\n");
printf(" ||||||||||||||||||||||\n");
printf(" ╭||||━━ ━━||||╮\n");
printf(" ╰||| o o |||╯\n");
printf(" ||╰╭--╮ˋ╭--╮╯|| \n");
printf("\t\t\t\t\t\t1.Start!\n\n");
printf("\t\t\t\t\t\t2.Help!\n\n");
printf("\t\t\t\t\t\t3.Exit!\n");
printf("╭╮╭╮﹒╭╮∴ ☆╭─╭──╮─╮\n");
printf("││││╭╯╰─╮∴╰╮│╭╮│╭╯\n");
printf("││││╰╮╭╮│﹒╭╯│╰╯│╰╮\n");
printf("││││★││││﹒╰╮│╭╮│╭╯\n");
printf("│╰╯╰─╯╰╯╰╮╭╯│╰╯│╰╮★\n");
printf("│╭╮╭─╮╭──╯╰─╰──╯─╯\n");
printf("╰╯││╭╯╰─╮★╭──╯╰──╮\n");
printf("∴☆│││╭─╮│﹒╰──╮╭──╯\n");
printf("☆﹒││││☆││∴╭─╮││╭─╮\n");
printf("☆★╰╯╰╯ ╰╯ ╰─╯╰╯╰─╯\n");
}
void move()
{
}
//时间延迟n毫秒
void pause(int n)
{
int t;
t=clock();
while(clock()-t<n);
}
void gotoxy(int x,int y)
{
COORD c;
c.X=x-1;
c.Y=y-1;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),c);
}
//开幕函数
void kaimu()
{
int i,n,j;
system("doskey/overstrike");//开始覆盖
system( "color 0D");
for (i=0;i<40;i++)
for(j=0;j<25;j++)
printf("★");
pause(300);
gotoxy(1,13);
for(n=0;n<80;n++)
printf(" ");
for(i=1;i<13;i++)
{
gotoxy(1,13-i);
for(n=0;n<80;n++)
printf(" ");//输出一排的空格进行覆盖
gotoxy(1,13+i);
for(n=0;n<80;n++)
printf(" ");//输出一排空格进行覆盖
pause(200); //暂停200ms
}
}
//闭幕函数
void bimu()
{
int i,n;
system("doskey/overstrike");//开始覆盖
system( "color 0F");
pause(300);
for(i=1;i<26;i++)
{
gotoxy(1,i);
for(n=0;n<80;n++)
printf(" ");//输出一排的空格进行覆盖
}
pause(200); //暂停200ms
gotoxy(1,25);
printf(" 游戏结束 \n");
pause(200);//暂停200ms
gotoxy(1,25);
printf(" 感谢CCTV!感谢大连TV! \n");
gotoxy(1,24);
printf(" 游戏结束 \n ");
pause(200);//暂停200ms
gotoxy(1,24);
printf(" 感谢CCTV!感谢大连TV! \n");
printf(" 制作人:朱凯,王一夫,杨磊,张继元 \n");
gotoxy(1,23);
printf(" 游戏结束 \n ");
pause(200);//暂停200ms
gotoxy(1,23);
printf(" 感谢CCTV!感谢大连TV! \n");
printf(" 制作人:朱凯,王一夫,杨磊,张继元 \n ");
printf(" 陈双亮,李发,刘峰 \n ");
gotoxy(1,22);
printf(" 游戏结束 \n ");
pause(200);//暂停200ms
gotoxy(1,22);
printf(" 感谢CCTV!感谢大连TV! \n");
printf(" 制作人:朱凯,王一夫,杨磊,张继元 \n ");
printf(" 陈双亮,李发,刘峰 \n ");
printf(" 测试人员:*