A cool minesweeper
Project description
Mfranceschi Minesweeper
(Far from) The best possible Minesweeper code!
Context
I am doing this side-project as a hobby. It is relatively easy to write a working minesweeper but it's harder to code nicely. My intention here is to write and enhance my code as I learn new coding guidelines. I am currently learning from the following sources:
- book "Clean Code" by Robert C. Martin (2002)
- book "The Pragmatic Programmer" by Andy Hunt and Dave Thomas (2019 Remaster)
- YouTuber ArjanCodes
How to use
Requirements: Python >=3.7, Tkinter (for GUI code = for playing!).
Helper for Debian: sudo apt install -y python3.7 python3-tk
.
Using PyPI
You can download and install the package from PyPI:
pip install mfranceschi-minesweeper
- Play the game by running directly in your terminal
mf-mines
. - Use the code by importing the package
mfranceschi_minesweeper
(beware of the underscore '_
').
Git clone
You can also clone this repo! Once it is done:
- Install dependencies with
pip install -r requirements.txt
. - Other packages used during development (not required to interpret the files):
- pylint (code linting)
- mypy (type checking)
- pytest (unit testing)
- poetry (building and PyPI stuff)
- Play the game by running from the repo's root
python .
- It will actually execute the file
__main__.py
.
- It will actually execute the file
- Use the code at will! Recommended IDE is VS Code since I used it and added a
.vscode/settings.json
file in the repo.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mfranceschi-minesweeper-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfc3d247779fbcdd17ed232aa299a2a414a9c4ac006a4b16db96e63ff494bbd6 |
|
MD5 | bf4e2b5ea8a7dd2d6a4f1e904969f975 |
|
BLAKE2b-256 | 938da7528423eaab78a340a90e11bef93599d920ad0ea0f322ac030a82f72207 |
Close
Hashes for mfranceschi_minesweeper-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b716abd1ed620098b2d64487669c5135fbea10753ec9ff5e2d098cfb0fc65245 |
|
MD5 | c612fa2137e2b56fb054a78f953f3ded |
|
BLAKE2b-256 | 5152daeeca388170230274e262194e0cfa1e0a306dacb020293865be0d86790a |