Skip to main content

A command-line variant of Minesweeper in Python.

Screenshot

Can be played in most terminal emulators for Linux, Mac, or Windows that support colors. Includes custom difficulties and a simple AI that you can watch attempt to solve the generated board.

Once installed, use the mines command to start a new game.

For help, controls, and usage run mines --help.

Change log

  • v2.2: Add timer that displays on game win and chording for faster reveals.
  • v2.1: Fix incorrect difficulties for original Minesweeper. Further improvements to the AI solver. Remove the mines file feature.
  • v2.0: Overhaul rendering to remove flicker and preserve scrollback buffer. Smarter AI solver, bug fixes, UI improvements, and a new difficulty preset.
  • v1.5: Bug fixes for game status message and win detection.
  • v1.4: Use the original Minesweeper win definition and ensure that the first move is always safe. Improve game status message.
  • v1.3: Add simple AI solver.
  • v1.2: New difficulty mode.
  • v1.1: Bug fix for Windows.
  • v1.0: Initial release.

Metadata

Release files for terminal-mines 2.2

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

Source distribution (sdist)

Source distribution for terminal-mines 2.2
File Size Uploaded
terminal_mines-2.2.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for terminal-mines 2.2
File Interpreter ABI Platform
terminal_mines-2.2-py3-none-any.whl Python 3 none any Details

Total release size: 24.6 kB

Release files / terminal_mines-2.2.tar.gz

Download URL terminal_mines-2.2.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
813e1ce175b5e08bdb9c1259de30b9189314854c96c55dede62352e878b06307
BLAKE2b-256 checksum
How to use checksums
d7d29183a1d0392d67e7792dd0ab02adf6be45c8dedc9145579f6843115d4c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.1

Release files / terminal_mines-2.2-py3-none-any.whl

Download URL terminal_mines-2.2-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29668c17ef125bc5e119ae247a544e59b7cd6bebf6e86734c6d1922c322d7197
BLAKE2b-256 checksum
How to use checksums
e20e442f6c5ed5b368880569887b1a71b100aefb63dc32368fb32a2c4fbf3376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.1

Release history Release notifications | RSS feed

This release

2.2 This release

2 release files

2.1

2 release files

2.0

2 release files

1.5

1 release file

1.4

1 release file

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

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