Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erthium/minesweeper
Mine Sweeper game in Python with Pygame, includes the main algorithm of the game.
https://github.com/erthium/minesweeper
puzzle puzzle-generator pygame python
Last synced: about 1 month ago
JSON representation
Mine Sweeper game in Python with Pygame, includes the main algorithm of the game.
- Host: GitHub
- URL: https://github.com/erthium/minesweeper
- Owner: erthium
- License: mit
- Created: 2022-06-07T10:01:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-08T03:58:52.000Z (about 1 year ago)
- Last Synced: 2024-06-04T00:00:02.182Z (7 months ago)
- Topics: puzzle, puzzle-generator, pygame, python
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MineSweeper
Good old Mine Sweeper game in python, made with Tkinter.
---
---
Algorithm:
The game starts when the user clicks 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.