Skip to content

foben/pysweep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PySweep 1.0

Welcome to PySweep, a command line Minesweeper clone written in Python.

To start, run the script with three additional parameters, specifying the height and width of the game board and the number of mines placed:

python pysweep.py 10 10 5

In the game, you can clear a field and see how many surrounding mines there are (You should be sure the field itself does not contain one ;) ), flag and unflag fields or test your solution:

type "y, x" to clear a field 
type "y, x," (trailing comma) to flag a field as mined
flag same field again to remove flag
type "solve" to check your solution

For the general rules of the game, I refer you to the Wikipedia article ;) http://en.wikipedia.org/wiki/Minesweeper_(video_game)

Have fun !

About

A command line Minesweeper clone written in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages