Welcome to pyMine!
Classis Mine game in python!
pyMine is an open-source module for Python, helps you to create or play old classic Windows Mine game in Python Terminal enviorment.
How to install?
pip
pip install pymine
How to play?
After installing module, you need to import it.
from pyMine.engine import mine_engine
pyMine module includes mine_engine class, clear_terminal function and COLOR class. create a mine_engine object.
game = mine_engine(row=10,col=10,mines_count=20)
if you wish to define row,col and number of mines later, feel free to leave inputs empty, lator you can set or edit values by:
- num_mines -> int
- map_size(row,col) -> function
After defining mine attributes, first we need to create game board and build cells, then we have to generate mines into board cell.
game.create_map() #this will build up game map.
game.generate_mines() #this will generate mines and put them into game board.
It's better not to change any of the attributes while playing to prevent any errors.
After all these, you can now print out the game board.
game.print_map()
so now you can start playing, use flag(row,col) to flag a cell, use click(row,col) to choose and click on a cell, it will reveale number of mines around or it will explode!
Have fun! contact me if you needed help or anything else: soroushmpour@gmail.com © @soroushamdg made it.
Metadata
Release files for pymine 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pymine-1.0.6.tar.gz | 3.8 kB | Without provenance | Details for pymine-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymine-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for pymine-1.0.6-py3-none-any.whl |
Total release size: 20.4 kB
Release files / pymine-1.0.6.tar.gz
| Download URL | pymine-1.0.6.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07aa3d30bf698496111fd170e1731b07226f5f8aad224bc5d9e55d1b7aec42ea
|
|
BLAKE2b-256 checksum How to use checksums |
d3b4c0a6aa9b921ea20cb597941cfa1bceba73f8b2f181164319de5ab92bef8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Release files / pymine-1.0.6-py3-none-any.whl
| Download URL | pymine-1.0.6-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ab58cbac4500c0cb6e1e7bcbff406a9b05cb376e18b0219b0d93d19f03d50ec
|
|
BLAKE2b-256 checksum How to use checksums |
1673522912bdcf64e0fe6ad9783df6844777e89faacf494673833fc07eb244d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Security for pymine 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.