include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int z,b,game1,game2;
int map1[8][10]={
{0,0,0,1,1,1,1,1,1,1},//8,10
{0,0,1,1,0,0,1,0,4,1},
{0,0,1,0,0,0,1,0,0,1},
{0,0,1,2,0,2,0,2,0,1},
{0,0,1,0,2,1,1,0,0,1},
{1,1,1,0,2,0,1,0,1,1},
{1,3,3,3,3,3,0,0,1,0},
{1,1,1,1,1,1,1,1,1,0},
};
int mapp1[8][10]={
{0,0,0,1,1,1,1,1,1,1},//8,10
{0,0,1,1,0,0,1,0,0,1},
{0,0,1,0,0,0,1,0,0,1},
{0,0,1,0,0,0,0,0,0,1},
{0,0,1,0,0,1,1,0,0,1},
{1,1,1,0,0,0,1,0,1,1},
{1,3,3,3,3,3,0,0,1,0},
{1,1,1,1,1,1,1,1,1,0},
};
int map2[8][8]={
{1,1,1,1,1,1,1,1},//8,8
{1,0,0,0,1,0,0,1},
{1,0,1,0,1,2,3,1},
{1,0,0,0,0,2,3,1},
{1,0,1,0,1,2,3,1},
{1,0,0,0,1,0,0,1},
{1,1,1,1,1,4,0,1},
{0,0,0,0,1,1,1,1},
};
int mapp2[8][8]={
{1,1,1,1,1,1,1,1},//8,8
{1,0,0,0,1,0,0,1},
{1,0,1,0,1,0,3,1},
{1,0,0,0,0,0,3,1},
{1,0,1,0,1,0,3,1},
{1,0,0,0,1,0,0,1},
{1,1,1,1,1,0,0,1},
{0,0,0,0,1,1,1,1},
};
void color(int m){//改变输出符号的颜色
HANDLE consolehend;
consolehend = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(consolehend, m);
};
void game_1(){
z=1;
b=8;
while(1){
system(“cls”);
for(int i=0; i<=7; i){
for(int j=0; j<=9; j){
if(map1[i][j]==0)cout<<” “;
color(6);//1深蓝 2绿 3淡蓝 4深红 5紫 6棕 7白 8灰
if(map1[i][j]==1)cout<<”■”;
color(7);
if(map1[i][j]==2){
cout<<”□”;
game1++;
}
color(8);
if(map1[i][j]==3)cout<<”☆”;
color(3);
if(map1[i][j]==4)cout<<”♀”;
color(5);
if(map1[i][j]==5)cout<<”★”;
}
cout<[HTML_REMOVED]>name;
system(“cls”);
if(name==”VIP”){
cout<<”欢迎VIP玩家”<[HTML_REMOVED]>xz;
if(xz==1){
game_1();
}
else
if(xz==2){
game_2();
}
}
else
{
cout<<name<<”,欢迎来到垃圾游戏”<<endl;
Sleep(400);
system(“pause”);
game_1();
game_2();
}
return 0;
}