吃鸡小游戏

zhengchenhao1 2022-06-01 8:43:35 4

郑晨昊 2020-01-10 11:35:17 2020-01-16 18:30:37

#include #include <unistd.h> using namespace std;

int main() { cout << "温馨提示:" << endl; cout << "沉迷游戏伤眼" << endl; cout << "适当游戏益脑" << endl; cout << "每日签到:今天500枚金币。敲1签到,敲2退出每日签到。" << endl; int a; cin >> a;

if (a == 1) {
    cout << "\033[30m";
    cout << "正准备上飞机中---" ;
    cout << "--------";
    cout << "已上飞机。" << endl;
} else if (a == 2) {
    cout << "正在准备上飞机中---" ;
    cout << "--------";
    cout << "已上飞机。" << endl;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "\033[37m";
cout << "默认你落学校。" << endl;
cout << "你已到学校门前。" << endl;
cout << "前面是学校,你进不进去。" << endl;
cout << "进去选1,不进去选2。" << endl;
cout << "答案:";
int b;
cin >> b;

if (b == 1) {
    cout << "\033[32m";
    cout << "你进去了,顺便也躲过了敌人的追击。" << endl;
} else if (b == 2) {
    cout << "\033[31m";
    cout << "你站在门前,被敌人用AK射死了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;

    return 0;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "\033[32m";
cout << "现在,你看到学校桌子底下有一把M24,可是他在一间教室里面,你怎么进去进去?" << endl;
cout << "直接从门口进选1,翻窗进选2。" << endl;
cout << "答案:";
int c;
cin >> c;
if (c == 1) {
    cout << "\033[31m";
    cout << "那是敌人的埋伏,你刚进去就被敌人用平底锅敲死了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else if (c == 2) {
    cout << "\033[34m";
    cout << "那是敌人的埋伏,翻窗进是个明智的选择。" << endl;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你看见敌人,敌人却没发现你。" << endl;
cout << "你悄悄地走过去打他选1,先滚过去拿M24选2。" << endl;
cout << "答案:";
int d;
cin >> d;
if (d == 1) {
    cout << "敌人没发现你,你大力一拳,把他干掉了。得到了他的平底锅和桌子底下的M24。" << endl;
} else if (d == 2) {
    cout << "\033[31m";
    cout << "你滚过去,敌人发现了你,而且枪也没子弹。你死了!" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你要出学校,突然,你听到学校大门有脚步声。" << endl;
cout << "翻窗逃跑选1,从正门逃跑选2。" << endl;
cout << "答案:";
int e;
cin >> e;

if (e == 1) {
    cout << "\033[31m";
    cout << "窗户外有埋伏,你死了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else if (e == 2) {
    cout << "正门前面是两个穷光蛋,身上什么也没有。被你用平底锅干掉了。" << endl;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你出不出去?" << endl;
cout << "出去选1,不出去选2。" << endl;
cout << "答案:";
int f;
cin >> f;

if (f == 1) {
    cout << "有人往学校扔手雷,你躲过了手雷的轰炸。" << endl;
} else if (f == 2) {
    cout << "\033[31m";
    cout << "有人往学校扔手雷,你被炸死了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你要去P城,有一辆吉普车和一辆摩托车。" << endl;
cout << "坐吉普车去选1,坐摩托车选2。" << endl;
cout << "答案:";
int g;
cin >> g;

if (g == 1) {
    cout << "\033[31m";
    cout << "吉普车有故障,你刚踩油门车就爆炸了。你死了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else if (g == 2) {
    cout << "你开摩托车顺利地到达了P城。" << endl;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你在P城。" << endl;
cout << "消灭敌人选1,寻找物资选2。" << endl;
cout << "答案:";
int h;
cin >> h;

if (h == 1) {
    cout << "\033[31m";
    cout << "你现在紧缺补给品,没解决敌人,反而被敌人解决了你。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else if (h == 2) {
    cout << "你现在紧缺物资,寻找物资是第一步。" << endl;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,有一栋豪华的房子,你进不进去?" << endl;
cout << "进选1,不进选2。" << endl;
cout << "答案:";
int i;
cin >> i;

if (i == 1) {
    cout << "外面是敌人,你真幸运。" << endl;
} else if (i == 2) {
    cout << "\033[31m";
    cout << "突然,一个人开着车,把你给##了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你在房子里找到了一把98K,子弹,5个绷带,3个医疗箱和1瓶能量饮料。突然,有一个全副武装的人进了来。" << endl;
cout << "你直接跟他硬对硬选1,翻窗逃跑选2。" << endl;
cout << "答案:";
int j;
cin >> j;

if (j == 1) {
    cout << "那个人是个萌新,不知道怎么开枪,被你干掉了。你得到他的三级头,三级甲,三级包和AWM。" << endl;
} else if (j == 2) {
    cout << "\033[31m";
    cout << "你刚落地,就被人开车轧死了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你已经拥有足够的补给品和装备。" << endl;
cout << "去消灭敌人选1,不去选2。" << endl;
cout << "答案:";
int k;
cin >> k;

if (k == 1) {
    cout << "你已经拥有足够的物品,消灭敌人才是胜利的关键。" << endl;
} else if (k == 2) {
    cout << "\033[31m";
    cout << "你没去消灭敌人,反而敌人去把你消灭了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;

    cout << "谢谢!" << endl;
    return 0;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "突然,你发现那边有一群人,你现在需要采用什么方法消灭他们?" << endl;
cout << "做伏地魔选1,直接冲上去选2。" << endl;
cout << "答案:";
int l;
cin >> l;

if (l == 1) {
    cout << "\033[31m";
    cout << "突然,一辆车冲过来,把你给压死了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else if (l == 2) {
    cout << "敌人们还没发现你,就被一辆车轧死了。" << endl;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在还剩18个人,突然一个空投往一个离你不远的地方去了。你追不追?" << endl;
cout << "追选1,不追选2。" << endl;
cout << "答案:";
int m;
cin >> m;

if (m == 1) {
    cout << "\033[31m";
    cout << "突然一个导弹,把你和空投那儿的人都炸死了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else if (m == 2) {
    cout << "突然一个导弹,把那儿的人给炸死了。你真幸运!" << endl;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "有9个玩家因为去追空投而死了,还剩9个人。现在,你去不去舔空投?" << endl;
cout << "舔选1,不舔选2。" << endl;
cout << "答案:";
int n;
cin >> n;

if (n == 1) {
    cout << "你在舔空投的时候,你原来的地方炸了,你真好运,不仅得到了吉利服,而且还躲过了轰炸。" << endl;
} else if (n == 2) {
    cout << "\033[31m";
    cout << "突然,一个导弹把你给炸瓜了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你要不要去安全区?" << endl;
cout << "去选1,不去选2。" << endl;
cout << "答案:";
int o;
cin >> o;

if (o == 1) {
    cout << "你成功逃到了安全区。" << endl;
} else if (o == 2) {
    cout << "\033[31m";
    cout << "哪有人不去安全区的?!你在毒圈里挂了!" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,你看见一个玩家在一栋楼旁边,你怎么消灭他?" << endl;
cout << "直接选1,信仰之跃选2。" << endl;
cout << "答案:";
int p;
cin >> p;
if (p == 1) {
    cout << "\033[31m";
    cout << "你成为了敌人的猎物,敌人用手雷把你给炸飞了。" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;

    return 0;
} else if (p == 2) {
    cout << "敌人没发现你,你把他击杀了。" << endl;
} else {
    cout << "\033[31m";
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "现在,毒圈要来了,跑毒吗?" << endl;
cout << "跑选1,不跑选2。" << endl;
cout << "答案:";
int r;
cin >> r;

if (r == 1) {
    cout << "\033[31m";
    cout << "那儿是轰炸区,你被炸死了!" << endl;
    cout << "再接再厉,下次吃鸡。" << endl;
    cout << "谢谢!" << endl;
    return 0;
} else if (r == 2) {
    cout << "那儿是轰炸区,肯定不能去。" << endl;
    cout << "因为所有人都去跑毒了,所以全死了,你吃了鸡。" << endl;
} else {
    cout << "游戏自动判错," << endl;
    cout << "请重做!" << endl;
    return 0;
}
cout << "你第二次又吃鸡了,真##。" << endl;

cout << "再见!" << endl;

return 0;

}

{{ vote && vote.total.up }}