Skip to main content

A cool minesweeper

Project description

Mfranceschi Minesweeper

My_CI PyPI - Python Version PyPI license

(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.
  • 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

mfranceschi-minesweeper-0.2.2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mfranceschi_minesweeper-0.2.2-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file mfranceschi-minesweeper-0.2.2.tar.gz.

File metadata

  • Download URL: mfranceschi-minesweeper-0.2.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.10 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for mfranceschi-minesweeper-0.2.2.tar.gz
Algorithm Hash digest
SHA256 454f314c7b4eee5720e8a7553773bc4042fb35dc1290731f1cf88da7a3042498
MD5 7136a02c46452fd9909b55ed4edb8729
BLAKE2b-256 53ff0369d8764d2501b2eaed5171db49df86b0f5126f5f7f2a305e9965b9c278

See more details on using hashes here.

File details

Details for the file mfranceschi_minesweeper-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mfranceschi_minesweeper-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a90f94bbf2d1a4967e7292e6df9a1e34763d8d412213e83f5d5d9c26370cb68a
MD5 855781e2f0c3a2f6ac11e8f34b00e5af
BLAKE2b-256 5ff42cd8b3e2464518d5fcea1c35786e56c0b8e6161de6c6ed1609dff66e561d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page