挖坑
2024-02-21 14:07:40
发布于:浙江
恶魔轮盘赌
代码
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int live_1,live_2,now,out;
string name;
bool who,lst[8]={0,1,1,1,1,1,1,1};
void coutt(string d,int k){
for(int i=0;i<d.size();i++){
cout<<d[i];
Sleep(k);
}
}
void outt(){//汽水
if(lst[now++]) {
coutt("推掉勒实弹/n",50);
}
else{
coutt("推掉勒空弹/n",50);
}
}
void look(){//放大镜
if(lst[now]) {
cout<<"实弹/n";
}
if(!lst[now]) {
cout<<"空弹/n";
}
}
void nife(bool k){//小刀
out=lst[now++]*2;
if(k) {
live_1-=out;
if(out) {
system("color 40");
coutt("No!!",100);
cout<<"\n";
Sleep(500);
system("color 07");
}
coutt(name,50);
cout<<("扣了",50);
cout<<out;
coutt("滴血。\n",50);
}
if(!k) {
if(out) {
coutt("大哥,上强度!\n",50);
system("color 40");
Sleep(100);
}
else {
for(int i=0;i<6;i++){
cout<<".";
Sleep(300);
}
coutt("\n\nFUCK IT!\n",20);
}
live_2-=out;
Sleep(500);
coutt("大哥",20);
cout<<("扣了",20);
cout<<out;
coutt("滴血。\n",20);
system("color 07");
}
}
bool die(){
if(!live_1){
cout<<name<<"取钱失败。/n";
return 0;
}
else if(live_1==5&&!live_2){
cout<<"大哥就是逊!/n";
return 0;
}
else if(!live_1){
cout<<name<<"取钱成功。/n";
return 0;
}
return 1;
}
void use(){
bool l;
cout<<"\n是否使用道具,1为是,0为否:";
cin>>l;
if(l){
string ll="是",daoju;
while(ll=="是"){
cout<<"\n使用什么道具:";
cin>>daoju;
if(daoju=="小刀"){
nife(0);
}
else if(daoju=="汽水"){
outt();
}
else if(daoju=="放大镜"){
look();
}
else if(daoju=="手铐"){
}
}
}
}
int main(){
coutt("用你的名字签下生死状:",50) ;
cin>>name;
return 0;
}
全部评论 5
玩不了?
2024-02-25 来自 浙江
1炸裂
2024-02-24 来自 广东
0炸裂
2024-02-22 来自 广东
0啊???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
2024-02-22 来自 广东
0啊?
2024-02-21 来自 北京
0
有帮助,赞一个