Skip to content

Mine Sweeper game in Unity with C#, includes the main algorithm of the game.

License

Notifications You must be signed in to change notification settings

erthium/MineSweeperUnity

Repository files navigation

MineSweeperUnity

Good old Mine Sweeper game in Unity, made with using basic functions of C#. Only Vectors and Random Library is called from Unity's own packages.




Algorithm:

The game starts when the user clicks (clicks detected by Raycasting) any node of the board.

Then algorithm creates the mine field according to the first node user clicked in such a way that there will not be any mine near the first node.

In the rest of the game, whenever user clicks a node, that node reveals itself.

  • If the node is a mine, it's game over.

  • If the nodes value is 0, which means that there is no mine covers that node, it will reveal the nodes next to it as well.

About

Mine Sweeper game in Unity with C#, includes the main algorithm of the game.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages