Skip to content

cmsato09/minesweeper_fcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper tutorial project

Project Description

This is a minesweeper game made using Python's Tkinter following a tutorial posted by freeCodeCamp, originally by JimShapedCoding

This tutorial covers object-oriented programming by creating a class for a "cell" in minesweeper. By left-clicking or right-clicking a cell, specific actions should occur and the number of cells left should be tracked.

This tutorial also covers the algorithm associated with displaying the number of mines surrounding a particular cell, open surrounding cells if the surrounding cells has no mines, and randomizing mine placement. The basics of tkinter is touched upon, but not expanded.

How to Install

  1. Copy from Github project
  2. Make sure you have cell.py, main.py, and settings.py downloaded

How to Run

Run the main.py file to play the game. It will open a Tkinter interface.

Changelog

v1.1 -- fixed surrounding cell bug where only surrounding cells were opened when a cell had zero mines around. Recursively opens surrounding cells so if there are other zero mine cells next to zero mine cells, it opens.

v1.0 -- Coded base game covered in tutorial

About

Python GUI programming Minesweeper with Tkinter

Topics

Resources

Stars

Watchers

Forks

Languages