版本比较
2048(AKIOI版)
正文
增加 7 行删除 7 行
160 行未改动全部展开161162163164165165166167168169215 行未改动全部展开385386387388389389390391392393152 行未改动全部展开54654754854955055055155255355452 行未改动6076086096106116126116126136146146156166176183 行未改动62262362462562662662762862963027 行未改动160 行未改动全部展开 for(int j = 1 ; j <= chang ; j++){ if(ch[i][j] == "AK"){ system("cls"); if(f_c == 0)cout << "you are AK!\n"; else cout << "你AK了!\n"; else cout << "你AK了!\n"; ts(); return 1; } }215 行未改动全部展开 }}
void a(){ bool f = 0; bool f = 0; for(int i = 1 ; i <= chang ; i++){ for(int j = wide ; j >= 1 ; j--){ f = 0; if(ch[i][j] != ""){152 行未改动全部展开 cout << '\n'; } cout << "=====================\n"; ts(); return ; return ;}
void huan(){ f = !f;52 行未改动 cout << "游玩方法:两个同样的方块可以合成下一个等级的方块\n"; } if(f_c == 1)print("按任意键继续...\n",10); else print("press any key to continue\n",10); char c = getchar(); c = getchar(); char c = getchar(); c = getchar(); return ;} }
signed main(){ Read(); //2048 mini-games3 行未改动 if(f_c == 0)cout << "=====2048 mini-games=====\n"; else cout << "=====2048 小游戏=====\n"; if(f_c == 0)cout << "1.go!\n"; else cout << "1.开始!\n"; if(f_c == 0)cout << "2.quit\n"; if(f_c == 0)cout << "2.quit\n"; else cout << "2.退出\n"; if(f_c == 0)cout << "3.See the highest scores\n"; else cout << "3.看一看最大得分\n"; if(f == 1){if(f_c == 0)cout << "4.Turn on lowercase mode.\n";else cout << "4.开启小写模式\n";}27 行未改动