minesweeper.py

Created by ziii

Created on December 19, 2023

5.06 KB

A basic minesweeper game. Grid size can be chosen up to 24*17, as well as the number of bombs. Colors are fully customizable.

How to play:

After executing the script enter use the backspace and numbers to enter size of the grid and the amount of bombs.

Arrows to move cursor.

Ok to see what’s under a tile.

Shift to put or remove a flag on a tile.

You can customize colors in the script, from line 10 to 30 change the rgb values to change the colors of what’s described in the comment on the right.


During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.