版本比较
My compiler cannot possibly be that cute!
正文
增加 132 行删除 13 行
55 行未改动56575859606061626364656667686970717273747576777879808182838485868772 行未改动16016116216315316416516616716816917017117217316317417517617716717817918018118235 行未改动2182192202212222232242252262272282292302312322332342352369 行未改动24624724824923225025125225325499 行未改动35435535635734035835936036136213 行未改动37637737837936238038138238338413 行未改动3983994004014023844034044054064078 行未改动4164174184194014204214224234244254264274284294304114314324134334344354364374384394404414424434444154454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345354245365375385395405415425435445455465476 行未改动55 行未改动struct game_setting{ ll level;};
game_setting playerset;struct game_variables//游戏内参数{ ll ans,cnt,res,rndsum,rndnow; ll sumcard; vector<ll> idcard;
ll rate;};struct level_settings{ string name; ll id;};vector<level_settings> levels;ll levelsum;
void moststartinit()//最初初始化{ op=0; playerset.level=1; // !!! levelsum=1; levels.push_back({"Start",1});}
void startscreen(){72 行未改动 output_help(); */}
ll firstgame()void firstgame(){ //前置剧情1 clearscreen(); slowout("......"); clearscreen(); cout << "Prologue: My compiler\n"; for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; string out; out="N: You are a coder......\n"; out="N: You are a coder.\n"; slowout(out); out="N: As usual, you're about to start coding.\n"; slowout(out); out=" (You can Put anything as code)\n"; out=" (You can put anything as code)\n"; slowout(out); out=" (but every code need a '}' to over)\n\n"; slowout(out); sleep(3000);35 行未改动 cout << "----------" << endl; out="g++ main.cpp -o myfruit.exe\n"; slowout(out); cout << "----------" << endl; sleep(1000);
clearscreen(); cout << "Prologue: My compiler\n"; for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; out=pname; slowout(out); out=": Build!\n"; slowout(out); sleep(500); //CE clearscreen(); cout << "Prologue: My compiler\n"; for(ll i=1; i<=90; ++i) cout << '-';9 行未改动 cout << "\033[31m"; string erroring="Error "; string crash="Crash "; string failed="Failed "; for(ll i=1; i<=300; ++i) for(ll i=1; i<=500; ++i) { for(ll j=1; j<=15; ++j) { ll op1=rnd()%3;99 行未改动 for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; out=pname; slowout(out); out=": Hehe\n"; out=": Hehe...\n"; slowout(out); sleep(500); out=" (You take cancel of \"Delete the \'Yistie code compiler\'\")\n"; slowout(out);13 行未改动 cout << "[console]\n"; cout << "----------" << endl; out="\"Even though all the libraries are gone, I found three weird variables and a function still hanging around.\"\n"; slowout(out); out="\"ans, cnt, res and rnd\"\n"; out="\"Ans, cnt, res and rnd\"\n"; slowout(out); cout << "----------" << endl; sleep(1000); //AwA13 行未改动 for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; cout << "[console]\n"; cout << "----------" << endl; cout << "Round 1/5\n"; out="\"and some special controls hidden all over the place.\"\n"; out="\"And some special controls hidden all over the place.\"\n"; //以及一些特殊操作方式隐藏在各种地方 slowout(out); out="\"I can find some of them for a round... Wait me...\"\n"; slowout(out);8 行未改动 for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; slowout("....."); }
//示范1 clearscreen(); cout << "Prologue: My compiler\n"; for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; cout << "[console]\n"; cout << "----------" << endl; cout << "Round 1/5\n"; out="\"I find the libraries of \'output\', you can see them.\"\n\n"; slowout(out); sleep(1000); cout << "ans=0 cnt=3 res=1 rndsum=10 rndnow=0\nrate=0/5\n\n"; cout << "ans=0 cnt=3 res=1 rndsum=9 rndnow=0\nrate=0/5\n\n"; sleep(100); cout << "Functions:\n1.Thinking(cnt-=3 ans++ rndsum++)\n2.Finding(ans-=2 res-- rate++)\n"; cout << "Functions:\n1.Thinking(cnt-=3 ans++ rndsum++)\n2.Finding(ans-=2 res-- rate+=3)\n"; sleep(3000);
out="\"En... You can say the id of functions to do it when your weird variables are enough\"\n"; slowout(out); out="\"When the rates over my points, the libraries in this place are collection completely.\"\n"; slowout(out); out="\"For example......\"\n\n"; slowout(out); out="Take 1\nEnd\n"; quickout(out); cout << "----------" << endl; sleep(500); sleep(3000); //示范2 clearscreen(); cout << "Prologue: My compiler\n"; for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; cout << "[console]\n"; cout << "----------" << endl; cout << "Round 2/5\n"; cout << "ans=1 cnt=0 res=1 rndsum=10 rndnow=0\nrate=0/5\n\n"; sleep(100); cout << "Functions:\n1.Finding(ans-=2 res-- rate+=3)\n2.Fortune(rndsum-=k,rndnow+=k)\n"; sleep(2000); out="\n^_^\n\"We can take rndsum to take rnd().\"\n\"Each point of rndsum used increases the crit rate by 10%. Triggering a crit doubles the crit rate increase.\"\n"; //每使用rndsum一点就可以增加10%暴击率。触发暴击rate增加翻倍 slowout(out); out="Take 2 10\n"; quickout(out); cout << "----------" << endl; sleep(3000);
clearscreen(); cout << "Prologue: My compiler\n"; for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; cout << "[console]\n"; cout << "----------" << endl; cout << "Round 2/5\n"; cout << "ans=1 cnt=0 res=1 rndsum=0 rndnow=10\nrate=0/5\n\n"; sleep(100); cout << "Functions:\n1.Finding(ans-=2 res-- rate+=3)\n"; sleep(2000); out="Take 1\nEnd\n"; quickout(out); cout << "----------" << endl; sleep(3000); //示例3 clearscreen(); cout << "Prologue: My compiler\n"; for(ll i=1; i<=90; ++i) cout << '-'; cout << endl; cout << "[console]\n"; cout << "----------" << endl; cout << "Round 3/5\n"; cout << "ans=1 cnt=0 res=1 rndsum=0 rndnow=0(rnd=0<10 k*=2)\nrate=6/5\n\n"; sleep(100); cout << "Functions:\n"; sleep(2000); out="En... collecting completely! Next!\n"; slowout(out); sleep(1000); cout << "----------" << endl; sleep(3000);}
//最主要的游戏主程序void playgame(ll LEVEL){
}
ll nowlevels;void takelevel(){ clearscreen(); nowlevels=-1; for(auto i:levels) { cout << i.id << '.' << i.name << endl; } cout << endl << "> "; string morw; ll p_in=0; getline(cin,morw); if(morw.find("return")!=string::npos) exit(0); for(auto i:morw) { if(isdigit((unsigned char)i)) p_in=p_in*10+(i-'0'); } if(p_in<=playerset.level && p_in>0) { nowlevels=p_in; }}
void go(){ if(!op) { firstgame(); }
while(1) { takelevel(); if(nowlevels!=-1) { playgame(nowlevels); } }}
6 行未改动