Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.82 KB

File metadata and controls

53 lines (35 loc) · 1.82 KB

Minesweeper

A minesweeper clone made using Pygame.

Running the game

Get Python

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.

Running the Game

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.

Playing the Game

It is minesweeper, just click anywhere to get started.

Changing Game Settings

  1. Click the top left button, by default it is R2-D2
  2. Fill in the fields. Both "Game Size" and "Window Size" must be two comma separated values.
  3. 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).

Options

--dev: Enables debug logging as well as some other dev features
--bot=?: ? Is the level of bot you want to play with (1 -> 3)

Bots

TODO

Themes

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