Skip to content

raulzitoe/Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

Created using python (3.8.2) and pygame library (1.9.6): https://www.pygame.org/

Main Features:

  • Adjust number of bombs
  • First click is always a flood fill (open all cells next to the click up to cells with numbers)
  • Grid size readapts to screen size change
  • Max possible number of bombs adapts to new grid size
  • Place flags (safe click) with mouse Right Click (max placed = number of bombs)
  • Game resets with Left Click anywhere after Win or Loss
  • Labels for number of bombs and flags
  • Designed only using pygame drawing functions
  • Bombs are red and flags are blue squares

1 - Main game screen:

2 - Flood fill after first click:

3 - Placing flags:

4 - Win screen:

5 - Game Over and grid adjusted to a new size: