-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from Mitch4018169/main
Minesweeper Example
- Loading branch information
Showing
3 changed files
with
447 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Minesweeper | ||
This is a working version of minesweeper in minecraft using `mcpp` and c++. | ||
|
||
It should be compilable with something along the lines of `g++ -std=c++17 - Wall -o minesweeper minesweeper.cpp -lmcpp` | ||
after you have installed the library. | ||
|
||
To install the attached resource pack `minesweeper_resource_pack.zip` into your minecraft resourcepack folder. | ||
To find your resource pack folder go into minecraft and follow the steps | ||
Escape - Options - Resource Packs - Open Pack Folder | ||
Once opened move the .zip into the folder, and back into minecraft select it from the available packs list | ||
|
||
The game is played by launching the compiled code and originates from the player deleting only blocks where it | ||
requires to place blocks. It is recommended to run the code while flying in the air to avoid clipping issues. | ||
The code continues to loop until either you win, lose or place a barrier block on the board. | ||
|
||
The games size and mine count can be modified by changing the following values from the top of the Minesweeper class | ||
before recompiling | ||
`const int X_SIZE = 10;` | ||
`const int Z_SIZE = 10;` | ||
`const int MINE_COUNT = 20;` |
Oops, something went wrong.