Skip to content

implementation of minesweeper game and agent in python 3

License

Notifications You must be signed in to change notification settings

BaibhaVatsa/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • board representation
  • board generation
  • modifiable size
  • human playable
  • first click always safe
  • number of lives
  • different modes
  • detailed instructions
  • decouple base and ui to separate files
  • refactor
  • screenshots
  • scoreboard
  • formatted output
  • export maps
  • save progress
  • load maps
  • working agent

Development

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

About

implementation of minesweeper game and agent in python 3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages