问题标题: 酷町堂:MC时代2.0版本!!!

0
1
已解决
吕牧原
吕牧原
高级守护
高级守护
#include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<bits/stdc++.h>
#include<windows.h>
#include<windows.h>
#include<assert.h>
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<iostream>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<stdint.h>
#include<tgmath.h>
#include<assert.h>
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<iostream>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<conio.h>
#include <winable.h> 
#pragma GCC optimize(2)
using namespace std;
/*
颜色对照表
1 深蓝 
2 灰绿
3 绿蓝
4 灰红
5 灰粉 
6 灰黄
7 灰白
8 灰
9 蓝 
10 绿
11 天蓝
12 红 
13 粉
14 黄
15 白 
图形 
●■▼▲
*/ 
/*
1 天 
2 苹果 
3 树叶
4 金苹果
5 附魔金苹果 
6 空气 
7 树木 
8 草方块 
9 石块 
10 铁矿 
11 岩浆
12 金矿 
13 钻石
14 煤 
15 基岩 
16 水
17 冰块
18 雪块 
19 沙子 
*/
/*
1 剑
2 铲子
3 木斧
4 稿子 
*/
int MCyan[51][2049];
int senlinyan[31][66]=
{
    {0},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,2,3,1,1,1,1,1,2,1,3,1,1,1,1,1,1,3,4,3,1,1,1,1,1,1,2,3,3,2,1,1,1,1,1,1,1,5,3,3,2,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,3,3,3,1,1,1,1,3,3,3,3,1,1,1,1,3,3,3,2,3,1,1,1,1,3,3,3,1,3,3,1,1,1,1,1,1,3,3,1,3,3,3,1,1,1,1,1,3,1,1,1,1,1,1,1,3,1,1,1,1},
    {0,1,1,1,3,3,3,3,3,1,1,1,3,2,3,3,1,1,1,1,3,3,3,3,3,1,1,1,3,3,3,2,3,3,3,3,1,1,1,1,1,3,3,3,3,3,3,1,1,1,1,3,2,3,1,1,1,1,1,3,3,3,1,1,1},
    {0,1,1,1,3,3,3,3,3,1,1,1,3,3,3,3,3,1,1,1,3,3,3,3,3,3,3,1,3,1,3,3,3,3,1,1,1,1,1,1,1,1,3,3,3,3,3,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,18,18,18,18,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,18,18,18,18,18,18,18,18,18,18,18,17,17,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18},
    {0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,18,18,18,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18},
    {0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,18,18,18,8,8,8,8,8,8,8,8},
    {0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,19,19,19,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,19,19,19,19,19,19,19,19,19,19,19,16,16,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,11,11,11,11,11,11,11,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19},
    {0,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,11,11,11,11,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19},
    {0,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19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,19,19,19,19},
    {0,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,11,11,11,11,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19},
    {0,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19},
    {0,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19},
    {0,9,9,9,9,9,9,9,9,9,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,6 ,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9},
    {0,9,9,9,9,9,9,9,9,9,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9,9,9,9,9,9,9,9,9,14,9,9,9,9,9,9,9,9,9,9,9,9,9,9,6 ,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9},
    {0,9,9,9,9,9,9,14,9,6,9 ,9 ,9,9 ,9,9 ,9,9 ,9 ,9 ,9,9 ,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,11,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9},
    {0,9,9,9,9,9,9,9,9,9,9,9,9,9,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9 ,9,9,9,14,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,13},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9,9,9,9,9,9},
    {0,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15},
};
struct fangkuaiedge
{
    int dengji;
    int shuliang;
};
struct gonjuedge
{
    int wupin;
    int dengji;
};
gonjuedge gongjurongji[11];
fangkuaiedge rongji[11];
int gongjushouchi,fangkuaishouchi;
int beibaoshouchi=0; 
void beibaokongzhi(int dengji)
{
    for(int i=1;i<=10;i++)
    {
        if(rongji[i].dengji==0)
        {
            rongji[i].dengji=dengji;
            break;
        }
        else if(rongji[i].dengji==dengji&&rongji[i].shuliang<64)
        {
            rongji[i].shuliang++;
            break;
        }
    }
}
void wa(int dengji,int i,int j)
{
    if(dengji==1||dengji==6) 
    {
        cout<<"警告!空气不能挖"; 
    }
    if(dengji==2||dengji==3||dengji==4||dengji==5)
    {
        Sleep(300);
        MCyan[i][j]=0;
        beibaokongzhi(dengji);
    }
    if(dengji==11)
    {
        cout<<"警告!岩浆不能挖"; 
    }
    if(dengji==7)
    {
        if(gongjurongji[gongjushouchi].wupin==3)
        {
            Sleep(max(2000-(gongjurongji[gongjushouchi].dengji)*500,0));
            MCyan[i][j]=0;
            beibaokongzhi(dengji);
        }
        else
        {
            Sleep(2000);
            MCyan[i][j]=0;
            beibaokongzhi(dengji);
        }
    }
    if(dengji==8)
    {
        if(gongjurongji[gongjushouchi].wupin==2)
        {
            Sleep(max(0,500-(gongjurongji[gongjushouchi].dengji)*100));
            MCyan[i][j]=0;
            beibaokongzhi(dengji);
        }
        else
        {
            Sleep(500);
            MCyan[i][j]=0;
            beibaokongzhi(dengji);
        }
    }
    if(dengji==9)
    {
        if(gongjurongji[gongjushouchi].wupin==4)
        {
            if(gongjurongji[gongjushouchi].dengji>0)
            {
                Sleep(max(0,2000-(gongjurongji[gongjushouchi].dengji-1)*400)); 
                MCyan[i][j]=0;
                beibaokongzhi(dengji);
            }
            else
            {
                cout<<"警告!空手不能挖石头";
            }
        }
        else
        {
            cout<<"警告!手持不在稿子上"; 
        }
    }
    if(dengji==10)
    {
        if(gongjurongji[gongjushouchi].wupin==4)
        {
            if(gongjurongji[gongjushouchi].dengji>1)
            {
                Sleep(max(0,2000-(gongjurongji[gongjushouchi].dengji-2)*400)); 
                MCyan[i][j]=0;
                beibaokongzhi(dengji);
            }
            else if(gongjurongji[gongjushouchi].dengji==1)
            {
                cout<<"警告!木稿不能挖铁";
            }
            else
            {
                cout<<"警告!空手不能挖铁";
            }
        }
        else
        {
            cout<<"警告!手持不在稿子上"; 
        }
    }
    if(dengji==12)
    {
        if(gongjurongji[gongjushouchi].wupin==4)
        {
            if(gongjurongji[gongjushouchi].dengji>2)
            {
                Sleep(max(0,2000-(gongjurongji[gongjushouchi].dengji-3)*400)); 
                MCyan[i][j]=0;
                beibaokongzhi(dengji);
            }
            else if(gongjurongji[gongjushouchi].dengji==2)
            {
                cout<<"警告!石稿不能挖金";
            }
            else if(gongjurongji[gongjushouchi].dengji==1)
            {
                cout<<"警告!木稿不能挖金";
            }
            else
            {
                cout<<"警告!空手不能挖金";
            }
        }
        else
        {
            cout<<"警告!手持不在稿子上"; 
        }
    }
    if(dengji==13)
    {
        if(gongjurongji[gongjushouchi].wupin==4)
        {
            if(gongjurongji[gongjushouchi].dengji>3)
            {
                Sleep(max(0,4000-(gongjurongji[gongjushouchi].dengji-3)*400)); 
                MCyan[i][j]=0;
                beibaokongzhi(dengji);
            }
            else if(gongjurongji[gongjushouchi].dengji==3)
            {
                cout<<"警告!铁稿不能挖钻石";
            }
            else if(gongjurongji[gongjushouchi].dengji==2)
            {
                cout<<"警告!石稿不能挖钻石";
            }
            else if(gongjurongji[gongjushouchi].dengji==1)
            {
                cout<<"警告!木稿不能挖钻石";
            }
            else
            {
                cout<<"警告!空手不能挖钻石";
            }
        }
        else
        {
            cout<<"警告!手持不在稿子上"; 
        }
    }
    if(dengji==15)
    {
        cout<<"警告!基岩不能挖"; 
    }
}
double xueliang=10,baoshidu=10;
void xueliangshuchu()
{
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
    cout<<"血量:"<<endl;
    if((int)(xueliang)<=10)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12);
        for(int i=1;i<=(int)(xueliang);i++)
        {
            cout<<"★";
        }
    }
    else
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12);
        for(int i=1;i<=10;i++)
        {
            cout<<"★";
        }
        cout<<endl;
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
        for(int ki=1;ki<=(int)(xueliang)/10-1;ki++)
        {
            for(int i=1;i<=10;i++)
            {
                cout<<"★";
            }
            cout<<endl;
        }
        for(int i=1;i<=(int)(xueliang)%10;i++)
        {
            cout<<"★";
        }
    }
}
void baoshidushuchu()
{
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
    cout<<"饱食度:"<<endl;
    if((int)(baoshidu)<=10)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10);
        for(int i=1;i<=(int)(baoshidu);i++)
        {
            cout<<"★";
        }
    }
    else
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10);
        for(int i=1;i<=10;i++)
        {
            cout<<"★";
        }
        cout<<endl;
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),11);
        for(int ki=1;ki<=(int)(baoshidu)/10-1;ki++)
        {
            for(int i=1;i<=10;i++)
            {
                cout<<"★";
            }
            cout<<endl;
        }
        for(int i=1;i<=(int)(baoshidu)%10;i++)
        {
            cout<<"★";
        }
    }
}
void shuchuMC(int a)
{
    if(a==1)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),11);
        printf("▇");
    }
    else if(a==2)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),207);
        printf("AP");
    }
    else if(a==3)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10);
        printf("▇");
    }
    else if(a==4)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),224);
        printf("AP");
    }
    else if(a==5)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),223);
        printf("AP");
    }
    else if(a==6)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),7);
        printf("▇");
    }
    else if(a==7)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),112);
        printf("WO");
    }
    else if(a==8)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),6);
        printf("▇");
    }
    else if(a==9)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),8);
        printf("▇");
    }
    else if(a==10)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),143);
        printf("∷");
    }
    else if(a==11)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12);
        printf("▇");
    }
    else if(a==12)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),142);
        printf("∷");
    }
    else if(a==13)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),139);
        printf("∷");
    }
    else if(a==14)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),128);
        printf("∷");
    }
    else if(a==15)
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),264);
        printf("==");
    }
    else if(a==16) 
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9);
        printf("▇");
    } 
    else if(a==17) 
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),144);
        printf("∷");
    }
    else if(a==18) 
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
        printf("▇");
    }
    else if(a==19) 
    {
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),224);
        printf("∷");
    }
}
int MCx=8,MCy=2;
void MC()
{
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);  
    COORD size = {150, 60};
    SetConsoleScreenBufferSize(hOut,size);  
    SMALL_RECT rc = {0,0, 150, 60};
    SetConsoleWindowInfo(hOut,true ,&rc);
    memset(MCyan,1,sizeof(MCy));
    system("cls");
    for(int i=1;i<=30;i++)
    {
        for(int j=1;j<=64;j++)
        {
            if(MCx==i&&MCy==j) 
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
                cout<<"梦";    
            } 
            else
            {
                shuchuMC(shadiyan[i][j]);
            } 
        }
        cout<<endl;
    }
    xueliangshuchu();
    cout<<endl;
    baoshidushuchu();
} 

int x=14,y=1;
int jiguan1[16][3]={{0},{0,1,4},{0,1,4},{0,3,2},{0,1,3},{0,2,4},{0,4,1},{0,1,4},{0,2,3},{0,1,4},{0,3,2},{0,1,4},{0,1,4},{0,2,4},{0,1,3},{0,2,4}};
int ditu3y[20][41]=
{
    {0},
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,15,11,11,11,11,12,11,11,11,11,11,11,11},
    {0,11,11,11,11,11,11,11,11,11,11,11,6 ,6 ,6 ,6 ,6 ,6 ,11,11,11,11,11,11,11,11,11,15,15,15,11,11,12,12,12,11,11,11,11,11,11},
    {0,11,11,11,11,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,15,11,11,12,12,12,12,12,11,11,11,11,11},
    {0,11,11,11,15,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11},
    {0,11,11,15,11,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11},
    {0,11,15,15,15,15,15,15,15,15,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0,11,11,15,11,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0,11,11,11,15,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0,11,11,11,11,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,6 ,6 ,6 ,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0,11,11,11,11,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,191,191,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0,11,11,11,11,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0,11,11,11,11,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0,11,11,11,11,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0,11,11,11,191,11,11,11,11,11,11,11,6 ,11,11,11,11,6 ,11,11,11,11,191,191,11,11,11,11,11,11,11,191,191,11,11,11,11,11,11,11,11},
    {0,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,11,11,11,11,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 },
    {0,6 ,6 ,6 ,6 ,6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11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0 ,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0 ,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11},
    {0 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 },
    {0 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 },
    {0 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6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,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
};
int chushiy[20][51]=
{
    {0},
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,15,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 },
    {0,11,11,11,15,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,15,15,15,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,11,0 ,11,0 ,11,11,6 },
    {0,11,11,15,15,15,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,15,11,11,11,11,11,11,11,11,11,11,11,11,11,11,15,11,11,11,11,11,11,6 ,0 ,11,0 ,0 ,11,11,6 },
    {0,11,11,11,15,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,15,11,11,11,11,11,6 ,0 ,11,0 ,0 ,11,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,15,15,15,15,15,15,15,11,11,11,11,6 ,0 ,11,0 ,0 ,11,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,15,11,11,11,11,11,6 ,0 ,0 ,0 ,0 ,0 ,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,15,11,11,11,11,11,11,6 ,11,0 ,11,0 ,0 ,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,11,0 ,11,0 ,11,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,172,10,10,10,172,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,11,11,11,0 ,11,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,0 ,0 ,0 ,0 ,0 ,0 ,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,11,0 ,0 ,11,11,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,6 ,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,0 ,0 ,0 ,11,0 ,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,6 ,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,11,0 ,0 ,11,11,11,6 },
    {0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,6 ,6 ,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,6 ,11,0 ,0 ,11,11,11,6 },
    {0,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,6 ,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1},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
};
void die()
{
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
    cout<<"■                  ■          ■■■■■■■            ■          ■";
    cout<<endl;
    cout<<" ■               ■            ■          ■            ■          ■";
    cout<<endl;
    cout<<"   ■            ■             ■          ■            ■          ■";
    cout<<endl;
    cout<<"    ■          ■              ■          ■            ■          ■";
    cout<<endl;
    cout<<"      ■      ■                ■          ■            ■          ■";
    cout<<endl;
    cout<<"        ■  ■                  ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■■■■■■■            ■■■■■■■";
    cout<<endl;
    system("cls");
    Sleep(500);
    cout<<"■                  ■          ■■■■■■■            ■          ■";
    cout<<endl;
    cout<<" ■               ■            ■          ■            ■          ■";
    cout<<endl;
    cout<<"   ■            ■             ■          ■            ■          ■";
    cout<<endl;
    cout<<"    ■          ■              ■          ■            ■          ■";
    cout<<endl;
    cout<<"      ■      ■                ■          ■            ■          ■";
    cout<<endl;
    cout<<"        ■  ■                  ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■          ■            ■          ■";
    cout<<endl;
    cout<<"          ■                    ■■■■■■■            ■■■■■■■";
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<"                     ■               ■                   ■■■■■■■■■";
    cout<<endl; 
    cout<<"                     ■               ■                   ■              ■";
    cout<<endl; 
    cout<<"                     ■               ■                   ■              ■";
    cout<<endl;
    cout<<"                     ■               ■                   ■              ■";
    cout<<endl;
    cout<<"                     ■                                    ■              ■";
    cout<<endl;
    cout<<"                     ■               ■                   ■              ■";
    cout<<endl;
    cout<<"         ■■■■■■■               ■                   ■■■■■■■■■";
    cout<<endl;
    cout<<"         ■          ■               ■                   ■                ";
    cout<<endl; 
    cout<<"         ■          ■               ■                   ■                ";
    cout<<endl;
    cout<<"         ■          ■               ■                   ■                ";
    cout<<endl;
    cout<<"         ■          ■               ■                   ■                ";
    cout<<endl;
    cout<<"         ■          ■               ■                   ■                ";
    cout<<endl;
    cout<<"         ■■■■■■■               ■                   ■■■■■■■■■";
    for(int j=1;j<=5;j++)
    {
        for(int i=1;i<=15;i++)
        {
            system("cls"); 
            SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),i);
            Sleep(50);
            cout<<"■                  ■          ■■■■■■■            ■          ■";
            cout<<endl;
            cout<<" ■               ■            ■          ■            ■          ■";
            cout<<endl;
            cout<<"   ■            ■             ■          ■            ■          ■";
            cout<<endl;
            cout<<"    ■          ■              ■          ■            ■          ■";
            cout<<endl;
            cout<<"      ■      ■                ■          ■            ■          ■";
            cout<<endl;
            cout<<"        ■  ■                  ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■          ■            ■          ■";
            cout<<endl;
            cout<<"          ■                    ■■■■■■■            ■■■■■■■";
            cout<<endl;
            cout<<endl;
            cout<<endl;
            cout<<endl;
            cout<<endl;
            cout<<endl;
            cout<<"                     ■               ■                   ■■■■■■■■■";
            cout<<endl; 
            cout<<"                     ■               ■                   ■              ■";
            cout<<endl; 
            cout<<"                     ■               ■                   ■              ■";
            cout<<endl;
            cout<<"                     ■               ■                   ■              ■";
            cout<<endl;
            cout<<"                     ■                                    ■              ■";
            cout<<endl;
            cout<<"                     ■               ■                   ■              ■";
            cout<<endl;
            cout<<"         ■■■■■■■               ■                   ■■■■■■■■■";
            cout<<endl;
            cout<<"         ■          ■               ■                   ■                ";
            cout<<endl; 
            cout<<"         ■          ■               ■                   ■                ";
            cout<<endl;
            cout<<"         ■          ■               ■                   ■                ";
            cout<<endl;
            cout<<"         ■          ■               ■                   ■                ";
            cout<<endl;
            cout<<"         ■          ■               ■                   ■                ";
            cout<<endl;
            cout<<"         ■■■■■■■               ■                   ■■■■■■■■■";
        }
    }
    exit(0);
}
//die 
void yici(int i,int j)
{
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),11);
    system("cls"); 
    cout<<"    ■       ■";
    cout<<endl;
    cout<<"  ■      ■    ■ ";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■";
    cout<<endl;
    cout<<" ■";
    cout<<endl;
    cout<<"■■■     ■■■";
    cout<<endl;
    cout<<"   ■     ■    ■";
    cout<<endl;
    cout<<" ■       ■    ■";
    cout<<endl;
    cout<<"■         ■■■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■";
    cout<<endl;
    cout<<" ■                        ■         ■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■";
    cout<<endl;
    cout<<" ■                        ■         ■            ■■■■■■■■■■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■";
    cout<<endl;
    cout<<" ■                        ■         ■            ■■■■■■■■■■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■";
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<"           ■";
    cout<<endl;
    cout<<" ■       ■";
    cout<<endl;
    cout<<"   ■    ■■■■■■■■";
    cout<<endl;
    cout<<"        ■     ■     ■";
    cout<<endl;
    cout<<"       ■      ■    ■";
    cout<<endl;
    cout<<"    ■         ■";
    cout<<endl;
    cout<<"  ■         ■  ■";
    cout<<endl;
    cout<<"            ■    ■";
    cout<<endl;
    cout<<"           ■       ■";
    cout<<endl;
    cout<<"          ■         ■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■";
    cout<<endl;
    cout<<" ■                        ■         ■            ■■■■■■■■■■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■";
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<"           ■                   ■        ■■■■";
    cout<<endl;
    cout<<" ■       ■                    ■        ■    ■";
    cout<<endl;
    cout<<"   ■    ■■■■■■■■       ■        ■    ■";
    cout<<endl;
    cout<<"        ■     ■     ■        ■        ■    ■";
    cout<<endl;  
    cout<<"       ■      ■    ■     ■■■■■    ■    ■";
    cout<<endl;
    cout<<"    ■         ■             ■■ ■     ■    ■";
    cout<<endl;
    cout<<"  ■         ■  ■          ■ ■  ■   ■      ■";
    cout<<endl;
    cout<<"            ■    ■        ■  ■      ■        ■";
    cout<<endl;
    cout<<"           ■       ■          ■     ■          ■";
    cout<<endl;
    cout<<"          ■         ■         ■    ■            ■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■";
    cout<<endl;
    cout<<" ■                        ■         ■            ■■■■■■■■■■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■";
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<"           ■                   ■        ■■■■             ■";
    cout<<endl;
    cout<<" ■       ■                    ■        ■    ■           ■  ■";
    cout<<endl;
    cout<<"   ■    ■■■■■■■■       ■        ■    ■         ■      ■ ";
    cout<<endl;
    cout<<"        ■     ■     ■        ■        ■    ■       ■  ■■■  ■";
    cout<<endl;  
    cout<<"       ■      ■    ■     ■■■■■    ■    ■        ";
    cout<<endl;
    cout<<"    ■         ■             ■■ ■     ■    ■        ■■■■■■";
    cout<<endl;
    cout<<"  ■         ■  ■          ■ ■  ■   ■      ■          ■  ";
    cout<<endl;
    cout<<"            ■    ■        ■  ■      ■        ■        ■  ";
    cout<<endl;
    cout<<"           ■       ■          ■     ■          ■      ■     ■";
    cout<<endl;
    cout<<"          ■         ■         ■    ■            ■    ■■■■■■";
}
//一次机会 
void liangci(int i,int j)
{
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),11);
    system("cls"); 
    cout<<"    ■       ■";
    cout<<endl;
    cout<<"  ■      ■    ■ ";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■";
    cout<<endl;
    cout<<" ■";
    cout<<endl;
    cout<<"■■■     ■■■";
    cout<<endl;
    cout<<"   ■     ■    ■";
    cout<<endl;
    cout<<" ■       ■    ■";
    cout<<endl;
    cout<<"■         ■■■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■";
    cout<<endl;
    cout<<" ■                        ■         ■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■                  ■■■■■■■■■■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■              ■      ■ ";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■                ■      ■";
    cout<<endl;
    cout<<" ■                        ■         ■             ■■■■■■■■■■■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■         ■   ■  ■  ■  ■ ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■        ■  ■    ■■    ■■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■             ■                   ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■             ■                   ■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■                  ■■■■■■■■■■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■              ■      ■";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■                ■      ■";
    cout<<endl;
    cout<<" ■                        ■         ■             ■■■■■■■■■■■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■         ■   ■  ■  ■  ■ ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■        ■  ■    ■■    ■■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■             ■                   ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■             ■                   ■";
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<"           ■";
    cout<<endl;
    cout<<" ■       ■";
    cout<<endl;
    cout<<"   ■    ■■■■■■■■";
    cout<<endl;
    cout<<"        ■     ■     ■";
    cout<<endl;
    cout<<"       ■      ■    ■";
    cout<<endl;
    cout<<"    ■         ■";
    cout<<endl;
    cout<<"  ■         ■  ■";
    cout<<endl;
    cout<<"            ■    ■";
    cout<<endl;
    cout<<"           ■       ■";
    cout<<endl;
    cout<<"          ■         ■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■                  ■■■■■■■■■■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■              ■      ■ ";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■                ■      ■";
    cout<<endl;
    cout<<" ■                        ■         ■             ■■■■■■■■■■■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■         ■   ■  ■  ■  ■ ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■        ■  ■    ■■    ■■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■             ■                   ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■             ■                   ■";
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<"           ■                   ■        ■■■■";
    cout<<endl;
    cout<<" ■       ■                    ■        ■    ■";
    cout<<endl;
    cout<<"   ■    ■■■■■■■■       ■        ■    ■";
    cout<<endl;
    cout<<"        ■     ■     ■        ■        ■    ■";
    cout<<endl;  
    cout<<"       ■      ■    ■     ■■■■■    ■    ■";
    cout<<endl;
    cout<<"    ■         ■             ■■ ■     ■    ■";
    cout<<endl;
    cout<<"  ■         ■  ■          ■ ■  ■   ■      ■";
    cout<<endl;
    cout<<"            ■    ■        ■  ■      ■        ■";
    cout<<endl;
    cout<<"           ■       ■          ■     ■          ■";
    cout<<endl;
    cout<<"          ■         ■         ■    ■            ■";
    Sleep(100);
    system("cls"); 
    cout<<"    ■       ■              ■    ■                  ■■■■■■■■■■";
    cout<<endl;
    cout<<"  ■      ■    ■         ■     ■■■■■■              ■      ■ ";
    cout<<endl;
    cout<<"■■■  ■ ■■■ ■     ■■    ■   ■  ■                ■      ■";
    cout<<endl;
    cout<<" ■                        ■         ■             ■■■■■■■■■■■";
    cout<<endl;
    cout<<"■■■     ■■■          ■     ■  ■  ■         ■   ■  ■  ■  ■ ■";
    cout<<endl;
    cout<<"   ■     ■    ■         ■    ■   ■   ■        ■  ■    ■■    ■■";
    cout<<endl;
    cout<<" ■       ■    ■         ■   ■    ■             ■                   ■";
    cout<<endl;
    cout<<"■         ■■■          ■         ■             ■                   ■";
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<endl;
    cout<<"           ■                   ■        ■■■■             ■";
    cout<<endl;
    cout<<" ■       ■                    ■        ■    ■           ■  ■";
    cout<<endl;
    cout<<"   ■    ■■■■■■■■       ■        ■    ■         ■      ■ ";
    cout<<endl;
    cout<<"        ■     ■     ■        ■        ■    ■       ■  ■■■  ■";
    cout<<endl;  
    cout<<"       ■      ■    ■     ■■■■■    ■    ■        ";
    cout<<endl;
    cout<<"    ■         ■             ■■ ■     ■    ■        ■■■■■■";
    cout<<endl;
    cout<<"  ■         ■  ■          ■ ■  ■   ■      ■          ■  ";
    cout<<endl;
    cout<<"            ■    ■        ■  ■      ■        ■        ■  ";
    cout<<endl;
    cout<<"           ■       ■          ■     ■          ■      ■     ■";
    cout<<endl;
    cout<<"          ■         ■         ■    ■            ■    ■■■■■■";
}
//两次机会 
void shuchu3(int ki,int kj)
{
    system("cls");
    for(int i=1;i<=19;i++)
    {
        for(int j=1;j<=40;j++)
        {
            if(x==i&&y==j)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
                cout<<"我"; 
            }
            else if(ditu3d[i][j]==1)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ditu3y[i][j]);
                printf("▇");
            }
            else if(ditu3d[i][j]==2)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ditu3y[i][j]);
                printf("●");
            }
            else if(ditu3d[i][j]==3)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ditu3y[i][j]);
                printf("▼");
            } 
            else
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ditu3y[i][j]);
                printf("▲");
            }
        }
        cout<<endl;
    }
    if(ditu3di[x][y]==2) die();
    if(ditu3di[x][y]==1) die();
} 
//输出3 
void dixing3()
{
    while(1)
    {
        bool f=0;
        if(ditu3di[x+1][y]==0)
        {
            x+=1;
            if(x==19)
            {
                f=1; 
            }
        }
        else
        {
            break;
        }
        if(f==1)
        {
            die();
            break;
        }
        system("cls");
        shuchu3(1,1);
    }
}
//地心引力3
void yidong3(char xingzou,int i,int j)
{
    if(xingzou=='d') 
    {
        if(ditu3di[x][y+1]==0||ditu3di[x][y+1]==2)
        {
            if(y!=j+40)
                y+=1;
        }
    }
    if(xingzou=='a')
    {
        if(ditu3di[x][y-1]==0||ditu3di[x][y-1]==2)
        {
            if(y!=j+1-1)
                y-=1;
        }
    }
    if(xingzou=='s')
    {
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y<j+1-1) y=j;
        Sleep(20);
        shuchu3(i,j);
    }
    if(xingzou=='w')
    {
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
    }
    if(xingzou=='q')
    {
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y<j+1-1) y=j;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y<j+1-1) y=j;
        Sleep(200);
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y<j+1-1) y=j;
        Sleep(20);
        shuchu3(i,j);
    }
    if(xingzou=='e')
    {
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y>j+40) y=j+40;
        shuchu3(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(ditu3di[x][y]==1) x-=1;
        if(y>j+40) y=j+40;
        Sleep(20);
        shuchu3(i,j);
    }
}
//移动3 
void youxijiguan1()
{
    for(int i=1;i<=15;i++)
    {
        yici(1,1);
        int jiguan1y=12+jiguan1[i][1];
        int jiguan2y=12+jiguan1[i][2];
        ditu3y[5][jiguan1y]=191;
        ditu3y[5][jiguan2y]=191;
        ditu3di[5][jiguan1y]=2;
        ditu3di[5][jiguan2y]=2;
        ditu3d[5][jiguan1y]=3;
        ditu3d[5][jiguan2y]=3;
        shuchu3(1,1);
        Sleep(100);
        char a;
        a=getch();
        yidong3(a,1,1);
        for(int i=5;i<=17;i++)
        {
            ditu3y[i][jiguan1y]=191;
            ditu3y[i][jiguan2y]=191;
            ditu3di[i][jiguan1y]=2;
            ditu3di[i][jiguan2y]=2;
            ditu3d[i][jiguan1y]=3;
            ditu3d[i][jiguan2y]=3;
            ditu3y[i-1][jiguan1y]=11;
            ditu3y[i-1][jiguan2y]=11;
            ditu3di[i-1][jiguan1y]=0;
            ditu3di[i-1][jiguan2y]=0;
            ditu3d[i-1][jiguan1y]=1;
            ditu3d[i-1][jiguan2y]=1;
            shuchu3(1,1);
            Sleep(100);
        }
        ditu3y[17][jiguan1y]=11;
        ditu3y[17][jiguan2y]=11;
        ditu3di[17][jiguan1y]=0;
        ditu3di[17][jiguan2y]=0;
        ditu3d[17][jiguan1y]=1;
        ditu3d[17][jiguan2y]=1;
        shuchu3(1,1);
        Sleep(100);
    }
}
void ditu3()
{
    int flag=1;
    x=14;
    y=40;
    while(1) 
    {
        shuchu3(1,1);
        char xingzou;
        xingzou=getch();
        if(x==14&&y==40&&xingzou=='d') return ;
        yidong3(xingzou,1,1);
        dixing3();
        if(y==16&&flag==0)
        {
            flag=1;
            ditu3y[10][12]=6;
            ditu3di[10][12]=1;
            ditu3y[10][17]=6;
            ditu3di[10][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[11][12]=6;
            ditu3di[11][12]=1;
            ditu3y[11][17]=6;
            ditu3di[11][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[12][12]=6;
            ditu3di[12][12]=1;
            ditu3y[12][17]=6;
            ditu3di[12][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[13][12]=6;
            ditu3di[13][12]=1;
            ditu3y[13][17]=6;
            ditu3di[13][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[14][12]=6;
            ditu3di[14][12]=1;
            ditu3y[14][17]=6;
            ditu3di[14][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[15][12]=6;
            ditu3di[15][12]=1;
            ditu3y[15][17]=6;
            ditu3di[15][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[16][12]=6;
            ditu3di[16][12]=1;
            ditu3y[16][17]=6;
            ditu3di[16][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[17][12]=6;
            ditu3di[17][12]=1;
            ditu3y[17][17]=6;
            ditu3di[17][17]=1;
            youxijiguan1();
        }
        if(y==18&&flag==1)
        {
            flag=0;
            ditu3y[10][12]=11;
            ditu3di[10][12]=0;
            ditu3y[10][17]=11;
            ditu3di[10][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[11][12]=11;
            ditu3di[11][12]=0;
            ditu3y[11][17]=11;
            ditu3di[11][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[12][12]=11;
            ditu3di[12][12]=0;
            ditu3y[12][17]=11;
            ditu3di[12][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[13][12]=11;
            ditu3di[13][12]=0;
            ditu3y[13][17]=11;
            ditu3di[13][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[14][12]=11;
            ditu3di[14][12]=0;
            ditu3y[14][17]=11;
            ditu3di[14][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[15][12]=11;
            ditu3di[15][12]=0;
            ditu3y[15][17]=11;
            ditu3di[15][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[16][12]=11;
            ditu3di[16][12]=0;
            ditu3y[16][17]=11;
            ditu3di[16][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[17][12]=11;
            ditu3di[17][12]=0;
            ditu3y[17][17]=11;
            ditu3di[17][17]=0;
        }
        if(y==19&&flag==0)
        {
            flag=1;
            ditu3y[10][12]=6;
            ditu3di[10][12]=1;
            ditu3y[10][17]=6;
            ditu3di[10][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[11][12]=6;
            ditu3di[11][12]=1;
            ditu3y[11][17]=6;
            ditu3di[11][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[12][12]=6;
            ditu3di[12][12]=1;
            ditu3y[12][17]=6;
            ditu3di[12][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[13][12]=6;
            ditu3di[13][12]=1;
            ditu3y[13][17]=6;
            ditu3di[13][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[14][12]=6;
            ditu3di[14][12]=1;
            ditu3y[14][17]=6;
            ditu3di[14][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[15][12]=6;
            ditu3di[15][12]=1;
            ditu3y[15][17]=6;
            ditu3di[15][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[16][12]=6;
            ditu3di[16][12]=1;
            ditu3y[16][17]=6;
            ditu3di[16][17]=1;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[17][12]=6;
            ditu3di[17][12]=1;
            ditu3y[17][17]=6;
            ditu3di[17][17]=1;
        }
        if(y==13&&flag==1)
        {
            flag=0;
            ditu3y[10][12]=11;
            ditu3di[10][12]=0;
            ditu3y[10][17]=11;
            ditu3di[10][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[11][12]=11;
            ditu3di[11][12]=0;
            ditu3y[11][17]=11;
            ditu3di[11][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[12][12]=11;
            ditu3di[12][12]=0;
            ditu3y[12][17]=11;
            ditu3di[12][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[13][12]=11;
            ditu3di[13][12]=0;
            ditu3y[13][17]=11;
            ditu3di[13][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[14][12]=11;
            ditu3di[14][12]=0;
            ditu3y[14][17]=11;
            ditu3di[14][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[15][12]=11;
            ditu3di[15][12]=0;
            ditu3y[15][17]=11;
            ditu3di[15][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[16][12]=11;
            ditu3di[16][12]=0;
            ditu3y[16][17]=11;
            ditu3di[16][17]=0;
            shuchu3(1,1);
            Sleep(100);
            ditu3y[17][12]=11;
            ditu3di[17][12]=0;
            ditu3y[17][17]=11;
            ditu3di[17][17]=0;
        }
    }
}
//第三个地图 
void shuchu2(int ki,int kj)
{
    system("cls");
    for(int i=1;i<=19;i++)
    {
        for(int j=1;j<=40;j++)
        {
            if(x==i&&y==j)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
                cout<<"我"; 
            }
            else if(ditu2d[i][j]==1)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ditu2y[i][j]);
                printf("▇");
            }
            else if(ditu2d[i][j]==3)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ditu2y[i][j]);
                printf("▼");
            } 
            else
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ditu2y[i][j]);
                printf("▲");
            }
        }
        cout<<endl;
    }
    if(ditu2di[x][y]==2) die();
    if(ditu2di[x][y]==1) die();
}
//输出2 
void dixing2(int i,int j)
{
    while(1)
    {
        bool f=0;
        if(ditu2di[x+1][y]==0)
        {
            x+=1;
            if(x==19)
            {
                f=1; 
            }
        }
        else
        {
            break;
        }
        if(f==1)
        {
            die();
            break;
        }
        system("cls");
        shuchu2(1,1);
    }
}
//地心引力2
void yidong2(char xingzou,int i,int j)
{
    if(xingzou=='d') 
    {
        if(ditu2di[x][y+1]==0||ditu2di[x][y+1]==2)
        {
            if(y!=j+40)
                y+=1;
        }
    }
    if(xingzou=='a')
    {
        if(ditu2di[x][y-1]==0||ditu2di[x][y-1]==2)
        {
            if(y!=j+1-1)
                y-=1;
        }
    }
    if(xingzou=='s')
    {
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        Sleep(20);
        shuchu2(i,j);
    }
    if(xingzou=='w')
    {
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
    }
    if(xingzou=='q')
    {
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        Sleep(20);
        if(y<j+1-1) y=j;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        Sleep(20);
        shuchu2(i,j);
    }
    if(xingzou=='e')
    {
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu2(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        Sleep(20);
        shuchu2(i,j);
    }
}
//移动2
void ditu2()
{
    x=16;
    y=40;
    while(1)
    {
        shuchu2(1,1);
        char xingzou;
        xingzou=getch();
        yidong2(xingzou,1,1);
        if(x==16&&y==40&&xingzou=='d')
        {
            return ;
        }
    }
}
void shuchu1(int i,int j)
{
    system("cls");
    for(int ki=1;ki<=19;ki++,i++)
    {
        for(int kj=1;kj<=42;kj++,j++)
        {
            if(i==x&&j==y)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
                cout<<"我"; 
            }
            else
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), chushiy[i][j]);
                if(chushid[i][j]==1)
                {
                    printf("▇");
                }
                else if(chushid[i][j]==2)
                {
                    printf("●");
                }
            }
        }
        cout<<endl;
        j-=42;
    }
    i-=19;
    if(chushidi[x][y]==2) die();
    if(chushidi[x][y]==1) die();
}
void dixing(int i,int j)
{
    while(1)
    {
        bool f=0;
        if(chushidi[x+1][y]==0)
        {
            x+=1;
            if(x==19)
            {
                f=1; 
            }
        }
        else
        {
            break;
        }
        if(f==1)
        {
            die();
            break;
        }
        system("cls");
        shuchu1(i,j);
    }
}
//地心引力 
void yidong(char xingzou,int i,int j)
{
    if(xingzou=='d') 
    {
        if(chushidi[x][y+1]==0)
        {
            if(y!=j+40)
                y+=1;
        }
    }
    if(xingzou=='a')
    {
        if(chushidi[x][y-1]==0)
        {
            if(y!=j+1-1)
                y-=1;
        }
    }
    if(xingzou=='s')
    {
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        Sleep(20);
        shuchu1(i,j);
    }
    if(xingzou=='w')
    {
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
    }
    if(xingzou=='q')
    {
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x-=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        Sleep(20);
        x+=1;
        y-=1;
        shuchu1(i,j);
        Sleep(20);
        if(y<j+1-1) y=j;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y-=1;
        if(y<j+1-1) y=j;
        Sleep(20);
        shuchu1(i,j);
    }
    if(xingzou=='e')
    {
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x-=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        shuchu1(i,j);
        Sleep(20);
        x+=1;
        y+=1;
        if(y>j+40) y=j+40;
        Sleep(20);
        shuchu1(i,j);
    }
}
//移动 
void ditu1()
{
    int flag=0;
    int flaga1=0,flaga2=0;
    int j=1,i=1;
    while(1)
    { 
        shuchu1(i,j);
        char xingzou=getch();
        if(flaga1==1&&flaga2==1&&x==14&&y==1&&xingzou=='a')
        {
            ditu2();
            x=14;
            y=1;
        }
        if(flaga1==1&&flaga2==1&&x==17&&y==1&&xingzou=='a')
        {
            ditu3();
            x=17;
            y=1;
        }
        yidong(xingzou,i,j);
        Sleep(10);
        dixing(i,j);
        if(y==19&&flaga1==0)
        {
            flaga1=1;
            shuchu1(i,j);
            yici(i,j);
            shuchu1(i,j);
            char xingzou=getch();
            yidong(xingzou,i,j);
            chushiy[9][19]=10;
            chushid[9][19]=1;
            chushidi[9][19]=0;
            chushiy[10][19]=12;
            chushid[10][19]=2;
            chushidi[10][19]=2;
            shuchu1(i,j);
            Sleep(100);
            chushiy[10][19]=10;
            chushid[10][19]=1;
            chushidi[10][19]=0;
            chushiy[11][19]=12;
            chushid[11][19]=2;
            chushidi[11][19]=2;
            shuchu1(i,j);
            Sleep(100);
            chushiy[11][19]=10;
            chushid[11][19]=1;
            chushidi[11][19]=0;
            chushiy[12][19]=12;
            chushid[12][19]=2;
            chushidi[12][19]=2;
            shuchu1(i,j);
            Sleep(100);
            chushiy[12][19]=11;
            chushid[12][19]=1;
            chushidi[12][19]=0;
            chushiy[13][19]=12;
            chushid[13][19]=2;
            chushidi[13][19]=2;
            shuchu1(i,j);
            Sleep(100);
            chushiy[13][19]=11;
            chushid[13][19]=1;
            chushidi[12][19]=0;
            chushiy[14][19]=12;
            chushid[14][19]=2;
            chushidi[13][19]=2;
            shuchu1(i,j);
            Sleep(100);
            chushiy[14][19]=11;
            chushid[14][19]=1;
            chushidi[14][19]=0; 
        }
        if(y==23&&flaga2==0)
        {
            flaga2=1;
            chushid[9][23]=1;
            chushiy[9][23]=10;
            chushidi[9][23]=0;
            yici(i,j);
            shuchu1(i,j);
            char xingzou=getch();
            yidong(xingzou,i,j);
            for(int k=1;k<=40;k++)
            {
                if(k!=19)
                {
                    chushid[1][k]=2;
                    chushidi[1][k]=2;
                }
            }
            shuchu1(i,j);
            Sleep(100);
            for(int ki=2;ki<=14;ki++)
            {
                for(int kj=1;kj<=40;kj++)
                {
                    if(kj!=19)
                    {
                        chushid[ki][kj]=2;
                        chushidi[ki][kj]=2;
                        chushid[ki-1][kj]=1;
                        chushidi[ki-1][kj]=0;
                    }
                }
                shuchu1(i,j);
                Sleep(100);
            }
            for(int k=1;k<=40;k++)
            {
                if(k!=19)
                {
                    chushid[14][k]=1;
                    chushidi[14][k]=0;
                }
            }
            shuchu1(i,j);
            chushidi[15][11]=0;
            liangci(1,1);
            shuchu1(i,j);
            char xing=getch();
            yidong(xing,i,j);
            char xin=getch();
            yidong(xin,i,j);
            for(int ki1=15;ki1<=19;ki1++)
            {
                for(int kj1=13;kj1<=30;kj1++)
                {
                    chushiy[ki1][kj1]=15;
                    chushidi[ki1][kj1]=0;
                }
                Sleep(100);
                dixing(i,j);
                shuchu1(i,j);
            }
            dixing(i,j);
        }
        if(y<=37&&flag==1)
        {
            flag=0;
            j-=9;
        } 
        if(y>=38&&flag==0)
        {
            flag=1;
            j+=9;
            chushiy[6][37]=11;
            chushiy[7][36]=11;
            chushiy[4][37]=11;
            chushiy[3][36]=11;
            chushiy[6][33]=15;
            chushiy[7][34]=15;
            chushiy[3][34]=15;
            chushiy[4][33]=15;
        }
        system("cls"); 
    }  
}
//地图 
void guize()
{
    cout<<"规则是:\n";
    Sleep(700); 
    cout<<"a键向左走,d键向右走\n";
    Sleep(1500);
    cout<<"s键向左跳跃,w键向右跳跃\n";
    Sleep(1500);
    cout<<"q键向左二连跳,e键向右二连跳\n";
    Sleep(1500);
    cout<<"版权所有,未经允许不得盗版,例:迷你世界盗版MC\n";
    Sleep(2500);
    cout<<"在此致敬行走,有些代码是借鉴行走的"; 
    Sleep(6000);
    system("cls"); 
}
//规则 
void kaishiyouxi()
{
    system("cls"); 
    while(1)
    {
        cout<<"\n\n\n\n";
        cout<<"                 |-------------------------------------------|\n";
        cout<<"                 |        1.新游戏              2.规则       |\n";
        cout<<"                 |                            作者--吕牧原   |\n";
        cout<<"                 |-------------------------------------------|\n";
        cout<<"\t\t选择:";
        int xuanze;
        cin>>xuanze; 
        system("cls"); 
        if(xuanze==2)
        {
            guize();
        }
        else
        {
            ditu1();
        }
    }
}
//游戏 
void mozu()
{
    cout<<"\n\n\n\n";
    cout<<"                 |--------------------------------------------------|\n";
    cout<<"                 |        1.原版              2.MC       3.古树     |\n";
    cout<<"                 |                          作者--吕牧原            |\n";
    cout<<"                 |--------------------------------------------------|\n";
    cout<<"\t\t选择:";
    int a;
    cin>>a;
    if(a==1)
    {
        kaishiyouxi();
    } 
    else if(a==2) 
    {
        MC(); 
    }
    else
    {
        cout<<"未开封"; 
    }
}
//模组 
void exe()
{
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);  
    CONSOLE_SCREEN_BUFFER_INFO bInfo; 
    GetConsoleScreenBufferInfo(hOut, &bInfo );  
    SetConsoleTitle("MC·肝爆之旅");
    COORD size = {100, 30};
    SetConsoleScreenBufferSize(hOut,size);  
    SMALL_RECT rc = {0,0, 100, 30};
    SetConsoleWindowInfo(hOut,true ,&rc);
    int x=::MessageBox(NULL, TEXT("         MC时代,开启!\n              世界无双"), TEXT("2.0版本!"), 0);
}
//修改exe
void kaishiyu()
{
    system("color 70");
    cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\t\t源自dream创建者\n";Sleep(1500);
    cout<<"\t\t\t\t\t纯属虚构 本人原创\n";Sleep(1500);
    cout<<"\t\t\t\t  世界无双 是 MC 的2.0.01版本\n";Sleep(1500);
    cout<<"\t\t\t\t为了大家的体验效果 请打开英文输入法\n";Sleep(1500);
    cout<<"\t\t\t\t输入数据时核对一下 输入数字时不能有英文\n";Sleep(1500);
    cout<<"\t\t\t\t360找到你的时候麻烦通过一下,程序可能被当成病毒了!\n";Sleep(2000); 
    cout<<"\t\t\t\t\t 极昼工坊出品 -JZ-\n";Sleep(1000);
    cout<<"\t\t\t\t 极昼官方欢迎您游玩此游戏 谢谢!"; Sleep(5000);
    system("cls");
    system("color 07");
}
//开始语 
string getTime()
{
    time_t timep;
    time (&timep);
    char tmp[64];
    strftime(tmp, sizeof(tmp), "%m%d",localtime(&timep) );
    return tmp;
}
string GetTime()
{
    time_t timep;
    time (&timep);
    char tmp[64];
    strftime(tmp, sizeof(tmp), "%Y%m%d",localtime(&timep) );
    return tmp;
}
bool end_day(){
    string tmp=GetTime(),temp="20220101";
    if(tmp>=temp) return 1;
    else return 0;
}
bool fool_days()
{
    string tmp=getTime();
    if(tmp=="0401") return 1;
    else return 0;
} 
void Logical_Lock()
{
    if(fool_days())
    {
        system("cls");
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
        system("cls");
        cout<<endl;
        cout<<"抱    歉";
        cout<<endl<<endl;
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),240);
        cout<<"出于特殊原因,MC已停止更新,非常抱歉。";
        exit(0);
    }
    if(end_day())
    {
        system("cls");
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
        system("cls");
        cout<<endl;
        cout<<"MC 版本过低";
        cout<<endl<<endl;
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),240);
        cout<<"您现在使用的MC2.0已于2022年1月1日过期,请更新至最新版本!";
        exit(0);
    }
    return ;
}
int main()
{
    Logical_Lock();
    exe();
    kaishiyu();
    mozu();
    return 0;
}

 


0
0
0
0
0
0
我要回答