mastermind
This package allows you to play Mastermind directly into a jupyter notebook/lab IDE. It has been made using the great ipywidgets python library.
Install
pip install mastermind
How to use in a jupyter notebook
Copy and paste the following lines into a cell of a notebook and run it:
from mastermind import MastermindNotebook
game = MastermindNotebook()
The game should display, you can start playing by choosing one color for each position and click on "Confirm combination" button !
How to use in jupyter lab
To use in jupyter lab, don't forget to install the jupyter widget extension:
jupyter labextension install @jupyter-widgets/jupyterlab-manager
Once this is done, you can proceed in the same way as for the jupyter notebook use.
State of development
-
A Tkinter interface must be developed to play outside a notebook, feel free to contribute !
-
Add a DB to record all the games for one user
Metadata
Release files for mastermind 0.7
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 |
|---|---|---|---|---|
| mastermind-0.7.tar.gz | 4.4 kB | Without provenance | Details for mastermind-0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mastermind-0.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for mastermind-0.7-py2.py3-none-any.whl |
Total release size: 144.8 kB
Release files / mastermind-0.7.tar.gz
| Download URL | mastermind-0.7.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28bb494bcf9d150cab1cb2ca482debc073582b2e742a766778424711741f011d
|
|
BLAKE2b-256 checksum How to use checksums |
a52bf666404ba8c9bc890713b6959f2258caed676d71d287d296a070c21c5ab8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.8
|
Release files / mastermind-0.7-py2.py3-none-any.whl
| Download URL | mastermind-0.7-py2.py3-none-any.whl |
|---|---|
| Size | 140.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c61609c3e53b093569af22a3a297109dd004cc28008a12579db9750f2042569b
|
|
BLAKE2b-256 checksum How to use checksums |
8b8c93970a6bf11a4dee3f682ee75f9041dee13f4f24f79f9eea39ba781dbfe2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.8
|
Security for mastermind 0.7
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.