Tag:mine clearance

  • C language minesweeping game implementation code

    Time:2021-7-2

    This is a C language implementation of the console Minesweeper games, the realization of a random layout of bombs, scanning bombs, marking bombs, 100% for the first time not to be killed and other functions. Compiler: vs2015 Function module diagram source code #include<stdio.h> #include<stdlib.h> #include<time.h> Void show (int CBD [10] [10], int u [10] [10]) […]

  • C + + to realize minesweeping game

    Time:2021-6-30

    This example for you to share the C + + mine clearance game specific code, for your reference, the specific content is as follows Code directly #include<stdio.h> #include<windows.h> #include<stdlib.h> #include<time.h> #include<conio.h> #include<queue> #include<ctype.h> #Define a 17 // the height of a map #Define B 17 // map width #Define C 30 // total number of […]

  • C language to achieve simple minesweeping game

    Time:2021-6-28

    This example for you to share the C language simple minesweeping game specific code, for your reference, the specific content is as follows mine clearance Wedge: Minesweeping game is a time-consuming gadget when we were bored as children. Although the classic minesweeping game is no longer available after updating to win10 system, it still exists […]

  • C + + mine clearance Games

    Time:2021-6-27

    This example for you to share the C + + mine clearance game specific code, for your reference, the specific content is as follows #include<stdio.h> #include<windows.h> #include<stdlib.h> #include<time.h> #include<conio.h> #include<queue> #include<ctype.h> #Define a 17 // the height of a map #Define B 17 // map width #Define C 30 // total number of Mines using […]

  • C + + implementation of simple minesweeping game

    Time:2021-6-26

    Minesweeping is a classic computer games, with C + + to make it up, the effect of their own try #include<stdio.h> #include<Windows.h> #define YELLOW FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY #define CYAN FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_INTENSITY #define ORANGE FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY #define PURPLE FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_INTENSITY using namespace std; const int […]

  • C + + to realize minesweeping game (console version)

    Time:2021-6-25

    This example for you to share the C + + mine clearance game specific code, for your reference, the specific content is as follows You need to open a map.txt   Write to map In the map, * means open space   ; X is mine ********** ********** **x******* ********** ********** ********** ********** ********** ********** […]

  • C + + mine classic games

    Time:2021-6-23

    Using C + + to reproduce the classic minesweeping, for your reference, the specific content is as follows The main purpose is to open a piece of operation by DFS. The number has color, which is very real.In Windows minesweeping, pressing the left and right mouse buttons at the same time is also realized. See […]

  • C + + to achieve a small mine clearance game

    Time:2021-6-22

    This example for you to share the C + + implementation of Minesweeper game specific code, for your reference, the specific content is as follows The current version is version 0.98, you can add new features The code is as follows: #include<bits/stdc++.h> #include<windows.h> using namespace std; long long int c,dev,m,k,cnt,d,e,jie=10,z,abc,n,b[1000][1000],a[1000][1000],cc,cd,ce,def; // C is a random […]

  • C + + implementation of minesweeping game (console does not flash screen version)

    Time:2021-6-21

    Before I wrote a C + + console Minesweeper game, but due to the excessive use of system (“CLS”) swipe screen, resulting in flash screen, so I rewrite an improved version of non flash screen, and the logic is re stroked. map.h #ifndef MAP_H_ #define MAP_H_ #define MAX_WID 18 #define MAX_LEN 32 #define UP_ Edge […]

  • C + + mine clearance Games (console version)

    Time:2021-6-20

    In this paper, we share the specific code of C + + mine clearance game, for your reference, the specific content is as follows Program function: There are three modes: primary, intermediate and advanced Operation mode: WSAD control cursor movement, space bar to open the box Classes that provide mine clearance maps map.h #ifndef MAP_H_ […]

  • C + + minesweeping game simple production

    Time:2021-6-18

    This example for you to share the C + + mine clearance game specific code, for your reference, the specific content is as follows #ifndef SAOLEI_H #define SAOLEI_H class Block { friend class Saoleigame; public: Block(); bool isShown(); void setnum(int); int getnum(); bool isbomb(); protected: int num; bool flag_show; int x; int y; }; class […]

  • How to realize simple mine sweeping game with C + +

    Time:2021-6-16

    This example for you to share the C + + simple minesweeping game specific code, for your reference, the specific content is as follows Difficulties: I use the function of cleaning up a large area by clicking once. First, I save the coordinates of the selected area in a queue, then take out an element […]