Skip to content

YuvalRozner/Minesweeper

Repository files navigation

Minesweeper Game

sample

This is a Minesweeper game implemented in Java using JavaFX. The game has a simple user interface that allows the player to click on cells to reveal the numbers or mines beneath them. The game is won when all non-mine cells have been revealed, and lost when a mine cell is revealed.

Installation

  1. Clone the repository to your local machine.
  2. Ensure that Java SE 8 or higher is installed on your computer.
  3. Ensure that JavaFX library is included in your project.
  4. Compile and run the MinesFX.java file.

Usage & Features

  • Customize the board size and mine count.
  • Click on cells to reveal the numbers or mines beneath them.
  • Right-click on cells to toggle or untoggle a flag.
  • Win the game by revealing all non-mine cells.
  • Lose life by revealing a mine cell.
  • Lose the game by losing 3 times.
  • Restart the game any time.
  • Reset to start over the same board game.
  • There is a mines counter aside the board to know how many mines already revealed.

Requirements

  • Java SE 8 or higher.
  • JavaFX library.

Author

Yuval Rozner

About

Java Minesweeper game with JavaFX GUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages