Skip to main content

Minesweeper

Implementation of Minesweeper game and agent in Python 3.

Screenshots

A Game of 5x5 Map in progress

A Game of 5x5 Map in progress

Sample exported 20x20 Map

Sample exported 20x20 Map

Modules

pyminesweeper

  • MinesweeperMap
    • Contains the functions to create the minesweeper grid and help connect to a frontend
  • MinesweeperUI
    • Contains terminal UI for playing the game and functions to create a customised game UI

Installing

pip install python-minesweeper

How to Play

import pyminesweeper
game = pyminesweeper.MinesweeperUI()
game.run()

Planned additions

  • ability to load maps
  • a working agent

Development

All kinds of contributions are very welcome.
Source: python-minesweeper

Release files for python-minesweeper 0.1.1

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

Source distribution (sdist)

Source distribution for python-minesweeper 0.1.1
File Size Uploaded
python-minesweeper-0.1.1.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-minesweeper 0.1.1
File Interpreter ABI Platform
python_minesweeper-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / python-minesweeper-0.1.1.tar.gz

Download URL python-minesweeper-0.1.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ddb40de8280ff9245c4867a60b0dfeb7d06212dc019320bf7f1e10e09481cd52
BLAKE2b-256 checksum
How to use checksums
4ab4200cbcc3486adc96104d53af483d43630d0aa93e074a3371a6384ec1e126
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.3

Release files / python_minesweeper-0.1.1-py3-none-any.whl

Download URL python_minesweeper-0.1.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
637bdb79f25bc0fabc8202cb81864f95558ac0a99e3070692ff29f3e4dc5938e
BLAKE2b-256 checksum
How to use checksums
18ac2909e3b4f6b72fb16d6814cf0bc132909170fe2e85e4bff01ef54ea817db
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.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.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