Skip to main content

pmine

Example code in Python 2.7+ / Python 3.6+ using only the standard library.

This is a terminal app that is installed as pmine. It requires support for UTF-8 and curses. Entry point is in minesweeper_cli.py. Use the -h option to print help.

Usage: pmine [difficulty [width [height]]] [-h] [-d] [-a]

  difficulty  Integer between 0 and 40 inclusive.
  width       Integer greater than 1.
  height      Integer greater than 1.

Options:
  -h  HelpDisplays this help message.
  -d  DebugDisplays complete call stacks on errors.
  -a  AutoEnables AI player to play 20 boards.

In game:
  Use the arrow keys or [hjkl] to move.
  Press [f] to flag a mine under cursor.
  Press [space] to reveal from under the cursor.
  Press [q] to quit the game.

There are no commands when AI player is enabled.

Example:
> pmine 3 32 16 -a

  This will have the AI player attempt 32x16 boards moderately packed
  with mines.

Title Hidden Board Active Board Defeat

Metadata

Release files for pmine 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pmine 1.0.4
File Size Uploaded Provenance Actions
pmine-1.0.4.tar.gz 140.3 kB Without provenance Details for pmine-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pmine 1.0.4
File Interpreter ABI Platform Actions
pmine-1.0.4-py3-none-any.whl Python 3 none any Details for pmine-1.0.4-py3-none-any.whl

Total release size: 153.2 kB

Release files / pmine-1.0.4.tar.gz

Download URL pmine-1.0.4.tar.gz
Size 140.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3b29aea9df96f81fb12fb1bba70b92c1cf1abd52c588b189e84d44fd8b0af0c4
BLAKE2b-256 checksum
How to use checksums
b8e18d36a7212a83c27f73c96f65fc458b8e41fe0e9b906e038a9a71867e2e39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

Release files / pmine-1.0.4-py3-none-any.whl

Download URL pmine-1.0.4-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42c3331d5c0f743c1cd5135017b197f89c18e932d69cbdeab6f6220ce219989e
BLAKE2b-256 checksum
How to use checksums
76cdbf26f95fdb369cae10a3c35cf794bb7d0b1bc1a966a63fe17a7820a64202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

Security for pmine 1.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page