发个自制游戏帖子都能被删
#include<iostream>
using namespace std;
int main()
{
int jb = 200;
int js = 0;
int js1;
while(1)
{
if (jb < 0)
{
cout << "you die" << endl;
return 0;
}
if (jb >= 100000000)
{
cout << "you win" << endl;
return 0;
}
if ((jb != 1)&&(jb!=2))
{
cout << "角色选择,输入1,花10000,选择坤坤.输入2,花5200,选择只因甲。" << endl;
cin >> js;
if ((js==1)&&(jb>=10000))
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb-=10000;
js1 = js = 1;
}
else if ((js==2)&&(jb>=5200))
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb-=5200;
js1 = js = 2;
}
else
{
cout << "菜就多练" << endl;
js1=0;
}
for(int i=1;i<=200;i++){
if (jb < 0)
{
cout << "you die" << endl;
return 0;
}
if (jb >= 100000000)
{
cout << "you win" << endl;
return 0;
}
cout << "开学第" << i << "天" << endl;
cout << "早上,你到了教室。输入1,进门。" << endl;
int a;
cin >> a;
if (a == 1){
cout << "进了教室,输入1 拿出作业,输入 2 撕掉作业,输入其他,出门。";
cin >> a;
if (a == 1){
cout << "作业交上了。" << endl;
jb+=10;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
else if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
cout << "上课了!!!" << endl;
cout << "数学老师问你问题,输入1,答,输入2,不答" << endl;
cin >> a;
if(a == 1)
{
cout << "数老:@#¥#@%¥#&*¥%#" << endl;
cout << "你:蛤?" << endl;
cout << "你被训了一顿" << endl;
jb-=1145;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
}
else if (a == 2)
{
cout << "数老:劳尸叫你你都不站!!!bu敬!!!" << endl;
cout << "你被训了一顿" << endl;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
jb-=10000;
cout << "你有" << jb << "个金币" << endl;
}
else
{
cout << "你率领同学们起义了!!!" << endl;
cout << "???结局:奋起!!!" << endl;
jb+=5145;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
}
} else if (a == 2){
cout << "哗啦,作业没了!" << endl;
jb-=100;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
cout << "作业被你撕掉了,现在该干什么呢?" << endl;
cout << "输入1选择,再写一份" << endl;
cout << "输入2选择,算了毁灭吧,把教室炸了。" << endl;
cout << "输入其他,前进10天" << endl;
cin >> a;
if (a == 1){
cout << "大早上是不可能马上补的上作业的" << endl;
cout << "死亡结局1:不该手欠1.0" << endl;
cout << "自动复活一次" << endl;
jb-=1145;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
cin >> a;
if (a == 12344321){
cout << "作业神奇的写完了!" << endl;
jb+=12345;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
i++;
} else {
cout << "作业还是没写完!完啦!" << endl;
cout << "你被叫家长了" << endl;
cout << "(医院生活)" << endl;
jb-=1000;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
i+=10;
}
} else if (a == 2) {
cout << "Boooooooooooooooooooooooooom!" << endl;
cout << "好结局:不用上学力(喜)!!!" << endl;
jb+=200;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
break;
} else {
cout << "过了10天" << endl;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
i+=10;
}
}
else {
cout << "正在思考,我该干啥" << endl;
cout << "思考不动,卡住了" << endl;
cout << "卡了 100 天......" << endl;
jb+=10;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
cin >> a;
if(a==1145514514)
{
cout << "隐藏结局:luckey boy/girl." << endl;
jb+=10000;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
}
i+=100;
jb+=5;
cout << "你有" << jb << "个金币" << endl;
}
}
else if(a==114514)
{
jb+=1000;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
break;
}
else {
cout << "因为早上教室门口,不明原因罚站,所以迟到了。" << endl;
jb-10;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
}
}
cout << "放假了" << endl;
cout << "你有" << jb << "个金币" << endl;
for(int i=1;i<=165;i++){
if (jb < 0)
{
cout << "you die" << endl;
return 0;
}
if (jb >= 100000000)
{
cout << "you win" << endl;
return 0;
}
cout << "假期第" << i << "天" << endl;
cout << "你有" << jb << "个金币" << endl;
cout << "早上,你起床了。输入1,叠被。" << endl;
int a;
cin >> a;
if (a == 1){
cout << "你一看,父母不在,输入1 拿出作业写,输入2 撕掉作业,输入其他,玩手机。";
cin >> a;
if (a == 1){
cout << "作业写完力!" << endl;
cout << "玩手机ing" << endl;
jb+=20;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
} else if (a == 2){
cout << "哗啦,作业没了!" << endl;
cout << "作业被你撕掉了,现在该干什么呢?" << endl;
cout << "输入1选择,等死" << endl;
cout << "输入2选择,重新写。" << endl;
cout << "输入其他,看电视" << endl;
cin >> a;
if (a == 2){
cout << "假期作业是抄不完滴!!(悲)" << endl;
cout << "你被丢进了狗窝" << endl;
cout << "坏结局1:I am a dog(才怪)." << endl;
jb-=20;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
cin >> a;
if (a == 1234554321){
cout << "作业神奇的恢复了!" << endl;
jb+=10;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
i--;
} else {
cout << "作业还是没抄完!完啦!" << endl;
cout << "你被揍喜了" << endl;
cout << "死亡结局2:不该手欠2.0";
jb-10000;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
break;
}
} else if (a == 1) {
cout << "父母回来了,丸辣!!" << endl;
cout << "旁白:你被揍力,正在养病。" << endl;
i+=10;
jb-=10;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
} else
{cout << "看电视ing" << endl;
cout << "(开门声)" << endl;
cout << "父母回来了!!!" << endl;
cout << "电视被拆力(悲)" << endl;
cout << "坏结局2:额滴电视!!!" <<endl;
jb-=30;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
break;
}
} else
{
cout << "(开门声)" << endl;
cout << "父母回来了!!!" << endl;
cout << "手机被没收力(悲)!!!" << endl;
cout << "坏结局3:额滴圣剑!!!" <<endl;
jb-=30;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
break;
}
}
else if(a==25041)
{
cout << "你脚下一滑,来到了一个深坑里。" << endl;
cout << "这时,一只只因落了下来。" << endl;
cout << "只因们涌了出来" << endl;
cout << "彩蛋:只因你太美。" << endl;
jb+=1145;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
break;
}
else {
cout << "因为没叠被,所以被揍了。" << endl;
cout << "乖乖写作业吧" << endl;
jb-=10;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
}
}
cout << "一般结局:一年过去了。" << endl;
jb+=500;
if (js1==2)
{
cout << "你选择了只因甲,每次加1020个金币。" << endl;
jb+=1020;
}
if (js1==1)
{
cout << "你选择了坤坤,每次加2500个金币。" << endl;
jb+=2500;
}
cout << "你有" << jb << "个金币" << endl;
}
}
return 0;
}
代码如上