失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 最强大脑《智行营救》

最强大脑《智行营救》

时间:2019-08-12 07:20:23

相关推荐

最强大脑《智行营救》

风一更,雪一更,聒碎乡心梦不成。

这也许是我最后更新的一个游戏。

原型是最强大脑《智行营救》

挺好玩的(自我感觉

当然,感谢关注与评论

#include <bits/stdc++.h>#include <windows.h>#include <conio.h>//1蓝 2绿 3淡蓝 4红 5粉 6土黄 7白 8灰//MessageBox(NULL, "输出内容?", "对话框标题", MB_OKCANCEL);/qq_57383000/article/details/121170493?ops_request_misc=&request_id=&biz_id=102&utm_term=C++%E6%80%8E%E4%B9%88%E8%AE%A9Messagebox&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-0-121170493.142^v42^control,185^v2^control&spm=1018.2226.3001.4187//VK_UP VK_DOWN VK_LEFT VK_RIGHT VK_RETURNusing namespace std;//▓ 泥土 注意空格!int x;#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0) //必要的,我是背下来的void slowsay(int x, string s) {for (int i = 0; s[i]; i++) {cout << s[i];Sleep(x);}}//1 rock 2蓝位 3绿位 4红位 5粉位 6土黄位 7白位//12蓝 13绿 14红 15粉 16土黄 17白int a[1111][30][30] = {{{0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,4,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0},{0,0,4,0,0,0,0,4,4,4,4,4,4,4,0,0,0,0,0,0},{0,0,4,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0},{0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,2,2,2,0,2,2,2,0,0,0,0,0,0,0,0},{0,0,0,0,2,2,0,2,2,2,0,2,2,0,0,0,0,0,0,0},{0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,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2,0},{0,2,0,2,0,0,0,2,0,0,0,2,0,0,2,0,2,0,2,2,2,2,2,2,0},{0,0,0,2,0,2,2,2,0,0,0,2,2,2,1,2,2,0,2,0,0,0,0,0,0},{0,0,0,2,0,2,0,0,0,0,0,2,0,0,2,0,0,2,2,0,2,2,2,2,0},{0,0,0,2,2,2,0,2,2,2,2,2,2,2,2,0,0,2,2,0,2,0,0,2,0},{0,0,0,2,0,0,0,2,0,0,0,0,0,2,0,0,2,2,0,0,2,2,2,2,0},{0,0,0,2,0,0,0,2,0,0,0,2,2,2,0,0,2,0,0,0,0,0,0,2,0},{0,0,2,2,0,0,0,2,2,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,0},{0,0,2,0,2,2,2,0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0,2,0},{0,0,2,0,2,0,2,0,0,0,2,2,2,2,2,0,2,2,0,0,0,0,0,2,0},{0,0,2,0,2,2,2,2,0,0,2,0,0,0,2,0,2,2,2,2,2,2,2,2,0},{0,2,2,0,2,2,0,2,2,0,2,0,0,0,2,0,0,2,0,0,0,0,0,0,0},{0,2,0,0,0,2,0,0,2,0,2,2,2,2,2,2,0,2,2,2,2,0,0,2,0},{0,2,2,2,2,2,0,0,2,0,2,0,0,0,0,2,0,2,0,0,2,2,2,2,0},{0,0,0,0,2,2,0,0,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,0,0},}};int daan[1111][1111];float shu[111] = {30.5, 16.5, 65.5, 45.5, 33.5, 45.5, 41.5, 100.5, 140.5};VOID SetPosC(COORD a) { // set cursorHANDLE out=GetStdHandle(STD_OUTPUT_HANDLE);SetConsoleCursorPosition(out, a);}VOID SetPos(int x, int y) { // set cursor2COORD pos= {x, y};SetPosC(pos);}void HideCursor() {CONSOLE_CURSOR_INFO cursor_info = {10, 0};SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info);}void color(int ForgC, int BackC) {WORD wColor = ((BackC & 0x0F) << 4) + (ForgC & 0x0F);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), wColor);}ifstream in;ofstream out;bool ok(int len, int k) {for (int i = 0; i < k; i++) {for (int j = 0; j < k; j++) {if (a[len][i][j] == 2) {return true;}}}return false;}const int dx[] = {-1, 1, 0, 0};const int dy[] = {0, 0, -1, 1};void Start() {system("color 0F");int X = 0;int guan = 0;//当前关卡int k = 20;double sheng = shu[0];for (int len = guan; len < 1000; len++) {if (len >= 4) k = 25;else k = 20;MessageBox(NULL, "开始游戏", "下一关", MB_OK);sheng = shu[len];int xxx, yyy;ag:printf("剩余步数:%.1lf \n", sheng);for (int i = 0; i < k; i++) {for (int j = 0; j < k; j++) {if (a[len][i][j] == 1) {//自己color(1, 0);printf("■");xxx = i;yyy = j;} else if (a[len][i][j] == 2) {//空位//1蓝 2绿 3淡蓝 4红 5粉 6土黄 7白 8灰color(6, 0);printf("□");} else if (a[len][i][j] == 0) {printf(" ");} else if (a[len][i][j] == 4) {color(6, 0);printf("■");}}printf("\n");}if (!ok(len, k)) {MessageBox(NULL, "做答成功!", "作答成功", MB_OK);system("cls");continue;}x = _getch();int op = -1;if (KEY_DOWN(VK_UP)) op = 1;if (KEY_DOWN(VK_DOWN)) op = 2;if (KEY_DOWN(VK_LEFT)) op = 3;if (KEY_DOWN(VK_RIGHT)) op = 4;int flag = 0;int first1 = 1;int q[100][100];for (int i = 0; i < k; i++) for (int j = 0; j < k; j++) q[i][j] = a[len][i][j]; for (int i = xxx;;) {for (int j = yyy;;) {SetPos(0,0);printf("剩余步数:%.1lf \n", sheng);if (op == 1) {i--;} else if (op == 2) {i++;} else if (op == 3) {j--;} else if (op == 4) {j++;}if (i >= 0 && i < k && j >= 0 && j < k);else {flag = 1;break;}int abc = a[len][i][j];if (abc != 2 && abc != 4) {flag = 1;break;}a[len][i][j] = 1;a[len][xxx][yyy] = 4;xxx = i, yyy = j;for (int i = 0; i < k; i++) {for (int j = 0; j < k; j++) {if (a[len][i][j] == 1) {//自己color(1, 0);printf("■");xxx = i;yyy = j;} else if (a[len][i][j] == 2) {//空位//1蓝 2绿 3淡蓝 4红 5粉 6土黄 7白 8灰color(6, 0);printf("□");} else if (a[len][i][j] == 0) {printf(" ");} else if (a[len][i][j] == 4) {color(6, 0);printf("■");}}printf("\n");}Sleep(0.1);a[len][i][j] = 4;}if (flag == 1) break;}a[len][xxx][yyy] = 1;sheng-=0.5;SetPos(0, 0);if (sheng <= 0) {MessageBox(NULL, "步数用光了。", "失败啦", MB_OK);for(int I = 0; I < 30; I++)for(int J = 0; J < 30; J++)a[len][I][J] = xcc[len][I][J];len--;continue;}if (x == VK_RETURN) {MessageBox(NULL, "你跳题了。", "跳题啦", MB_OK);continue;}if (x == KEY_DOWN(VK_SHIFT) ) {MessageBox(NULL, "你重来了。", "重来啦", MB_OK);len--;continue;}goto ag;}}signed main() {color(1, 6);HideCursor();SetPos(5, 5);slowsay(100, "欢迎来到《智行营救》训练场");Sleep(2000);SetPos(5, 7);slowsay(100, "按回车键开始游戏");SetPos(5, 6);color(4, 8);slowsay(100, "Enter﹃↓");x = _getch();if (x == '0') Start();while (x != VK_RETURN) x = _getch();x = MessageBox(NULL, "下载《智行营救》会花费118.8MB,是否下载?", "下载", MB_YESNO);if (x == 6) {yes:x = MessageBox(NULL, "确认下载?", "下载", MB_OKCANCEL);if (x != 1) {goto no;}} else {no:system("cls");slowsay(100, "欢迎下次光临~");return 0;}nono:color(8, 0);double k = rand() % 2;for (;;) {x = rand() % 100;k += 1.0 * x / 100.0;printf("%.2lfMB/118.8MB", k);Sleep(rand() % 200);system("cls");if (k >= 152.80) break;}printf("118.80MB/128.8MB");Sleep(200);SetPos(10, 10);color(6, 4);slowsay(100, "已下载《方块联动》至E盘");SetPos(10, 12);slowsay(100, "占用空间118.8MB,缓存空间392B");in.open("末日.txt");int c = 1;in>>c;in.close();system("cls");color(7, 0);slowsay(100, "看到这个了吗: ");color(1, 0);slowsay(100, "■\n\n");Sleep(2000);//1蓝 2绿 3淡蓝 4红 5粉 6土黄 7白 8灰color(7, 0);slowsay(100, "这是一个蓝色的方块,代表你现在的位置");Sleep(2000);slowsay(100, "同样:");color(7, 0);slowsay(100, "□");color(7, 0);slowsay(100, "我们定义它为未达到的位置");Sleep(1000);slowsay(100, "当你按下↑↓←→的时候,你的方块会向相同的方向移动,直到触碍");Sleep(2000);slowsay(100, "\n\n一开始,有一个n*n的遍布着方块和障碍物的盘面");Sleep(2000);slowsay(100, "成功就可以通关\n\n");Sleep(2000);slowsay(100, "失败判为挑战结束\n\n");Sleep(2000);slowsay(100, "去吧,一次性打通所有关卡即为通关\n\n(Enter)");x = _getch();while (x != VK_RETURN) x = _getch();system("cls");color(4, 0);Start();return 0;}

如果觉得《最强大脑《智行营救》》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。