ASCII Minesweeper
Inspired by a minesweeper game on my graphing calculator, I decided to create this version that you can play directly in your terminal. I originally started this project as an Easter egg project to embed into another Python script. This implementation is written in Python and uses numpy under the hood. While it is called ascii-minesweeper, it actually does use a few characters not in the ASCII character set. Hope you enjoy playing!
Gameplay
Install
pip install ascii-minesweeper
Run
In order to run the program from the terminal, you can type:
minesweeper
Otherwise, you can also launch the program from another Python script as an Easter egg like this:
from minesweeper import PlayMinesweeper
play = PlayMinesweeper()
play.launch_game()
Controls
- Arrow keys or WASD - Moves the cursor
- Space - Mark a square as a flag, question mark, or back to hidden
- Enter - Select a square to uncover
- Backspace or CTRL-C - Returns to main menu
Play in your web browser
Click this link below to open the code in Gitpod and sign in with your GitHub account.
Metadata
Release files for ascii-minesweeper 1.0.1
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 |
|---|---|---|---|---|
| ascii-minesweeper-1.0.1.tar.gz | 13.3 kB | Without provenance | Details for ascii-minesweeper-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ascii_minesweeper-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for ascii_minesweeper-1.0.1-py3-none-any.whl |
Total release size: 28.4 kB
Release files / ascii-minesweeper-1.0.1.tar.gz
| Download URL | ascii-minesweeper-1.0.1.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04bac1aade150114e22e8ea1780dc5bfd2e6832e909b4e73b4eb307e1307c905
|
|
BLAKE2b-256 checksum How to use checksums |
3782f3bcad333af736f5980590a9a34ea716f5ed731d9016d46fe3f35293f22c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / ascii_minesweeper-1.0.1-py3-none-any.whl
| Download URL | ascii_minesweeper-1.0.1-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf213bc0db59ebda662659f875c95d20880abc0a1d4281310a7b679538c0a37e
|
|
BLAKE2b-256 checksum How to use checksums |
f4bae0976096a680fba9f77719bee50dc0e89137d5538dc3db1aef064d0dca36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for ascii-minesweeper 1.0.1
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.