Skip to content

Dyspersja/Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

Java Minesweeper game created using JavaFX.

After running application you are greeted by welcome screen, here you can choose the board size and the difficulty level, which allows us to set the density of mines hidden on the board.

main_menu

Game offers 3 difficulty levels and board sizes from 5x5 to 40x70.

game

One of the features of this project is that each first guess guarantees that there won't be a mine. This happens because the board is generated after the player's first guess, ensuring that the game won't end after the player's first try. The game uses a algorithm to generate random board, making each game different.

game_lost

If, during the game, a player chooses a tile containing a mine, a message indicating a loss will be displayed. The game also shows all other mines on the board. The player will have the option to restart the game and try again with the same board settings or return to the main menu.

game_won

However, when a player uncovers all the tiles on the board without hitting a bomb, a message is displayed to inform them that they have won the game, and the tiles under which the bombs were located are revealed and highlighted in green.

About

Java Minesweeper game created using JavaFX

Topics

Resources

Stars

Watchers

Forks

Languages