Skip to content

gabriel88766/minesweesper-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minesweesper-java

Built from scratch, using Java Swing and Awt.
This project was made using IntelliJ IDEA Community Edition.
Clone this project in IntelliJ IDEA and run it with java 20.

Gameplay

  1. Choose difficulty (Easy: grid 9x9 with 10 mines, Medium(default): grid 16x16 with 40 mines, Hard: grid 30x16 with 99 mines)
  2. Then click anywhere in the map to start (It's granted there is no mines neither in the clicked square nor adjacencies)
  3. If some square has a number, there is #number of mines near that square.
  4. If some square is empty, there is no mines near that square.
  5. If you open some empty square, all adjacent squares will be opened recursively.
  6. You can right-click to mark some square as a mine.
  7. Once you have marked all mines near a number, you can click in that number to open all squares near that number, except those marked as mine. If you marked some mine incorrectly, the real mine will be activated, and you will lose.

Snapshot

snapshot