版本比较
密室逃脱V3.1.0
正文
增加 30 行删除 30 行
54 行未改动5556575859606162636465666768697071727374757677787980818283848586878889909192939431 行未改动12612712812913013113213313421 行未改动1561571581591601611621631647 行未改动17217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421531 行未改动24724824925025125225325425521 行未改动2772782792802812822832842856 行未改动292293294295296297298299300148 行未改动全部展开44945045145245345445545645749 行未改动50750850951051151251351451598 行未改动61461561661761861962062162262362462562656 行未改动68368468568668768868969069149 行未改动74174274374474574674774874999 行未改动84985085185285385485585685785885986086186286386486554 行未改动cout<<endl;cout<<"F : Current difficulty : ";if(idx==0){colorful(2,nd[idx]);cout<<endl;}else if(idx==1){colorful(4,nd[idx]);cout<<endl;}else if(idx==2){colorful(5,nd[idx]);cout<<endl;}cout<<"Current data:"<<endl;printf("P=%d,S=%d,A=%d,B=%d,C=%d\n",P,S,A,B,C);cout<<"E : Exit"<<endl;cout<<"[cin]>>";cin>>cz;if(cz=='A'){cout<<"Please enter the size of the maze(m*n)"<<endl<<"[cin]>>";scanf("%d*%d",&m,&n);Sleep(500);cout<<"Save successfully!" <<endl;e_options();return 0;}else if(cz=='B'){cout<<"Please enter the brightness of the flashlight (full brightness is 0)"<<endl<<"[cin]>>";scanf("%d",&foggy);foggy/=2;Sleep(500);cout<<"Save successfully!" <<endl;e_options();return 0;}else if(cz=='C'){char cz_2;system("cls");31 行未改动return 0;}else if(cz_2=='D'){cout<<"Please enter the 'me' icon"<<endl<<"[cin]>>";scanf("%s",&me);cout<<endl<<"Please enter the 'wall' icon"<<endl<<"[cin]>>";scanf("%s",&wall);cout<<endl<<"Please enter the 'End' icon"<<endl<<"[cin]>>";scanf("%s",&focus);21 行未改动return 0;}else if(cz=='E'){e_main_game();return 0;}else{cout<<"Error!!!"<<endl;e_options();7 行未改动cout<<"A : 设置迷宫大小"<<endl;cout<<"B : 设置手电亮度"<<endl;cout<<"C : 更改图标设置"<<endl;cout<<"D : 现在语言 : ";colorful(6,"中文");cout<<endl;cout<<"F : 当前难度 : ";if(idx==0){colorful(2,nd[idx]);cout<<endl;}else if(idx==1){colorful(4,nd[idx]);cout<<endl;}else if(idx==2){colorful(5,nd[idx]);cout<<endl;}cout<<"目前数据:"<<endl;printf("P=%d,S=%d,A=%d,B=%d,C=%d\n",P,S,A,B,C);cout<<"E : 返回"<<endl;cout<<"[cin]>>";cin>>cz;if(cz=='A'){cout<<"请输入迷宫大小(m*n)"<<endl<<"[cin]>>";scanf("%d*%d",&m,&n);Sleep(500);cout<<"保存成功!" <<endl;c_options();return 0;}else if(cz=='B'){cout<<"请输入手电亮度(全亮为0)"<<endl<<"[cin]>>";scanf("%d",&foggy);foggy/=2;Sleep(500);cout<<"保存成功!" <<endl;c_options();return 0;}else if(cz=='C'){char cz_2;system("cls");31 行未改动return 0;}else if(cz_2=='D'){cout<<"请输入'我'的图标"<<endl<<"[cin]>>";scanf("%s",&me);cout<<endl<<"请输入'墙'的图标"<<endl<<"[cin]>>";scanf("%s",&wall);cout<<endl<<"请输入'终点'的图标"<<endl<<"[cin]>>";scanf("%s",&focus);21 行未改动return 0;}else if(cz=='E'){c_main_game();return 0;}else{cout<<"Error!!!"<<endl;c_options();6 行未改动SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),change);cout<<content;change=((back&0x0F)<<4)+(15&0x0F);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),change);}void all_print(){for(int i=1;i<=m;i++){for(int j=1;j<=n;j++){if(i==px&&j==py){148 行未改动全部展开Sleep(6000);}else{Sleep(1000);}}system("cls");printf("Now, start escaping!");Sleep(500);49 行未改动printf("\nCongratulations, you've escaped the Escape Room!\n");printf("The minimum is %d steps, and you use %d steps.\n",shortest,step);Sleep(1000);cout<<"Your rating is......"<<endl;Sleep(2000);if(idx==0){if(step-shortest<=10){colorful(6,"P");cout<<"!!!!!"<<endl;98 行未改动cout<<"Error!!!"<<endl;e_main_game();return 0;}}system("cls");printf("You've escaped %d times in total!",wave);Sleep(5000);return 0;}int c_main_game(){56 行未改动Sleep(6000);}else{Sleep(1000);}}system("cls");printf("现在,开始逃脱!");Sleep(500);49 行未改动printf("\n恭喜你,逃出了密室!\n");printf("最少用%d步,你用了%d步!\n",shortest,step);Sleep(1000);cout<<"你的评分是......"<<endl;Sleep(2000);if(idx==0){if(step-shortest<=10){colorful(6,"P");cout<<"!!!!!"<<endl;99 行未改动cout<<"Error!!!"<<endl;c_main_game();return 0;}}system("cls");printf("你总共逃脱了%d次!",wave);Sleep(5000);return 0;}int main(){choose_languagu();return 0;}```54 行未改动5556575859606162636465666768697071727374757677787980818283848586878889909192939431 行未改动12612712812913013113213313421 行未改动1561571581591601611621631647 行未改动17217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421531 行未改动24724824925025125225325425521 行未改动2772782792802812822832842856 行未改动292293294295296297298299300148 行未改动全部展开44945045145245345445545645749 行未改动50750850951051151251351451598 行未改动61461561661761861962062162262362462562656 行未改动68368468568668768868969069149 行未改动74174274374474574674774874999 行未改动84985085185285385485585685785885986086186286386486554 行未改动cout<<endl;cout<<"F : Current difficulty : ";if(idx==0){colorful(2,nd[idx]);cout<<endl;}else if(idx==1){colorful(4,nd[idx]);cout<<endl;}else if(idx==2){colorful(5,nd[idx]);cout<<endl;}cout<<"Current data:"<<endl;printf("P=%d,S=%d,A=%d,B=%d,C=%d\n",P,S,A,B,C);cout<<"E : Exit"<<endl;cout<<"[cin]>>";cin>>cz;if(cz=='A'){cout<<"Please enter the size of the maze(m*n)"<<endl<<"[cin]>>";scanf("%d*%d",&m,&n);Sleep(500);cout<<"Save successfully!" <<endl;e_options();return 0;}else if(cz=='B'){cout<<"Please enter the brightness of the flashlight (full brightness is 0)"<<endl<<"[cin]>>";scanf("%d",&foggy);foggy/=2;Sleep(500);cout<<"Save successfully!" <<endl;e_options();return 0;}else if(cz=='C'){char cz_2;system("cls");31 行未改动return 0;}else if(cz_2=='D'){cout<<"Please enter the 'me' icon"<<endl<<"[cin]>>";scanf("%s",&me);cout<<endl<<"Please enter the 'wall' icon"<<endl<<"[cin]>>";scanf("%s",&wall);cout<<endl<<"Please enter the 'End' icon"<<endl<<"[cin]>>";scanf("%s",&focus);21 行未改动return 0;}else if(cz=='E'){e_main_game();return 0;}else{cout<<"Error!!!"<<endl;e_options();7 行未改动cout<<"A : 设置迷宫大小"<<endl;cout<<"B : 设置手电亮度"<<endl;cout<<"C : 更改图标设置"<<endl;cout<<"D : 现在语言 : ";colorful(6,"中文");cout<<endl;cout<<"F : 当前难度 : ";if(idx==0){colorful(2,nd[idx]);cout<<endl;}else if(idx==1){colorful(4,nd[idx]);cout<<endl;}else if(idx==2){colorful(5,nd[idx]);cout<<endl;}cout<<"目前数据:"<<endl;printf("P=%d,S=%d,A=%d,B=%d,C=%d\n",P,S,A,B,C);cout<<"E : 返回"<<endl;cout<<"[cin]>>";cin>>cz;if(cz=='A'){cout<<"请输入迷宫大小(m*n)"<<endl<<"[cin]>>";scanf("%d*%d",&m,&n);Sleep(500);cout<<"保存成功!" <<endl;c_options();return 0;}else if(cz=='B'){cout<<"请输入手电亮度(全亮为0)"<<endl<<"[cin]>>";scanf("%d",&foggy);foggy/=2;Sleep(500);cout<<"保存成功!" <<endl;c_options();return 0;}else if(cz=='C'){char cz_2;system("cls");31 行未改动return 0;}else if(cz_2=='D'){cout<<"请输入'我'的图标"<<endl<<"[cin]>>";scanf("%s",&me);cout<<endl<<"请输入'墙'的图标"<<endl<<"[cin]>>";scanf("%s",&wall);cout<<endl<<"请输入'终点'的图标"<<endl<<"[cin]>>";scanf("%s",&focus);21 行未改动return 0;}else if(cz=='E'){c_main_game();return 0;}else{cout<<"Error!!!"<<endl;c_options();6 行未改动SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),change);cout<<content;change=((back&0x0F)<<4)+(15&0x0F);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),change);}void all_print(){for(int i=1;i<=m;i++){for(int j=1;j<=n;j++){if(i==px&&j==py){148 行未改动全部展开Sleep(6000);}else{Sleep(1000);}}system("cls");printf("Now, start escaping!");Sleep(500);49 行未改动printf("\nCongratulations, you've escaped the Escape Room!\n");printf("The minimum is %d steps, and you use %d steps.\n",shortest,step);Sleep(1000);cout<<"Your rating is......"<<endl;Sleep(2000);if(idx==0){if(step-shortest<=10){colorful(6,"P");cout<<"!!!!!"<<endl;98 行未改动cout<<"Error!!!"<<endl;e_main_game();return 0;}}system("cls");printf("You've escaped %d times in total!",wave);Sleep(5000);return 0;}int c_main_game(){56 行未改动Sleep(6000);}else{Sleep(1000);}}system("cls");printf("现在,开始逃脱!");Sleep(500);49 行未改动printf("\n恭喜你,逃出了密室!\n");printf("最少用%d步,你用了%d步!\n",shortest,step);Sleep(1000);cout<<"你的评分是......"<<endl;Sleep(2000);if(idx==0){if(step-shortest<=10){colorful(6,"P");cout<<"!!!!!"<<endl;99 行未改动cout<<"Error!!!"<<endl;c_main_game();return 0;}}system("cls");printf("你总共逃脱了%d次!",wave);Sleep(5000);return 0;}int main(){choose_languagu();return 0;}```