A minesweeper clone made using Pygame.
You need something around Python 3.10. You can probably get away with 3.9, and 3.11 but the most recent versions do not work.
Before you can play, you must run the Dependencies.ps1 file to download all the libraries (2) that this needs.
Then you should be able to run Minesweeper.ps1 and you will be able to play.
It is minesweeper, just click anywhere to get started.
- Click the top left button, by default it is R2-D2
- Fill in the fields. Both "Game Size" and "Window Size" must be two comma separated values.
- Difficulty can be changed with the slider. It is the fraction of tiles that will be bombs. So anything above 0.2 or 0.3 is very hard, most of the time impossible (without guessing).
--dev: Enables debug logging as well as some other dev features
--bot=?: ? Is the level of bot you want to play with (1 -> 3)
TODO
You can add your own themes to the src/themes folder if you would like.
| Image | File name |
|---|---|
| "one" tile | one.png |
| "two" tile | two.png |
| ... | ... |
| "eight" tile | eight.png |
| Unrevealed tile | blank.png |
| Bomb | bomb.png |
| Button (rest) | button-rest.png |
| Button (press) | button-press.png |
| New game icon | new-game.png |
| Game over icon | new-game-gameover.png |
| Settings icon | settings.png |
| Top bar | topbar.png |