Skip to content

bryanbab/Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

MineSweeper Game 💣

This is a classic implementation of the MineSweeper game built using Java. The game features a grid of cells, each of which can either contain a mine or be empty. The goal is to uncover all the non-mine cells without triggering any mines. Players can flag 🚩 cells they suspect contain mines and reveal adjacent cells when a mine-free cell is uncovered.


Features

  • Interactive Grid: A grid of cells where each cell can either be revealed or flagged.
  • Mines: Randomly placed mines that the player must avoid.
  • Flagging: Right-click to place or remove flags on cells.
  • Flood Fill: Reveals neighboring cells when a cell with no adjacent mines is clicked.
  • Timer: Tracks the time spent on the game.
  • Winning Condition: The game is won when all non-mine cells are revealed.
  • Game Over: The game ends when a mine is clicked or the game is won

How to Play

  • Left Click: Reveal the cell.
  • Right Click: Flag the cell (or remove the flag if already placed).
  • The goal is to uncover all the cells that do not contain a mine.
  • The game ends when either all non-mine cells are revealed (you win), or you click on a mine (you lose).
MinesweeperGame.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages