FelSiq / minesweepyr

Minesweeper implementation in Python 3 using matplotlib. Kept as a personal reference to some interactive resources of matplotlib plots.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minesweeper in Python

Python minesweeper ('easy' difficult) This is a simple implementation of Minesweeper fully in Python.

Python minesweeper ('medium' difficult)

Python minesweeper ('expert' difficult)

Requirements

Python 3.8+

Installation

git clone https://github.com/FelSiq/minesweepyr.git
pip install -Ur requirements.txt

Run

While running the python script, the first argument must be the difficult level ('easy', 'medium', or 'expert'). Additionally, you may send a numeric random seed as the second (optional) argument to repeat the same game sequences.

python minesweepyr.py (easy|medium|expert) [random_seed]

Commands

Standard minesweeper commands:

  • Left click: open tile;
  • Right click: switch mark in tile; and
  • Both/middle button: open all tiles in the neighborhood of target tile.

License

MIT.

About

Minesweeper implementation in Python 3 using matplotlib. Kept as a personal reference to some interactive resources of matplotlib plots.

License:MIT License


Languages

Language:Python 100.0%