版本比较
【自制小游戏】扫雷
正文
增加 3 行删除 3 行
19 行未改动2021222324252627289 行未改动383940414243444546309 行未改动全部展开35635735835936036136236336434 行未改动19 行未改动bool f[105][105];int fl,lstx,lsty;int mx[]={-1,-1,-1,0,0,1,1,1};int my[]={-1,0,1,-1,1,-1,0,1};int trytime[3],wintime[3],bsttime[3];HANDLE hOutput=GetStdHandle(STD_OUTPUT_HANDLE);CONSOLE_FONT_INFO consoleCurrentFont;typedef pair<int,int> loc;ui seed(ui x){9 行未改动int d=seed(a*b*c)%y;return d<x;}void color(int x){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),x);}void movecursor(int x,int y){HANDLE hout;COORD pos;309 行未改动全部展开}DrawMenuBar(hwnd);srand(time(0));CONSOLE_CURSOR_INFO cursor_info={1,0};SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);HANDLE hStdin=GetStdHandle(STD_INPUT_HANDLE);DWORD mode;GetConsoleMode(hStdin,&mode);mode&=~ENABLE_QUICK_EDIT_MODE;34 行未改动19 行未改动2021222324252627289 行未改动383940414243444546309 行未改动全部展开35635735835936036136236336434 行未改动19 行未改动bool f[105][105];int fl,lstx,lsty;int mx[]={-1,-1,-1,0,0,1,1,1};int my[]={-1,0,1,-1,1,-1,0,1};int trytime[3],wintime[3],bsttime[3];HANDLE hOutput=GetStdHandle(STD_OUTPUT_HANDLE);CONSOLE_FONT_INFO consoleCurrentFont;typedef pair<int,int> loc;ui seed(ui x){9 行未改动int d=seed(a*b*c)%y;return d<x;}void color(int x){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),x);}void movecursor(int x,int y){HANDLE hout;COORD pos;309 行未改动全部展开}DrawMenuBar(hwnd);srand(time(0));CONSOLE_CURSOR_INFO cursor_info={1,0};SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);HANDLE hStdin=GetStdHandle(STD_INPUT_HANDLE);DWORD mode;GetConsoleMode(hStdin,&mode);mode&=~ENABLE_QUICK_EDIT_MODE;34 行未改动