Skip to content

Players try to find mines in a specific playing area. As players click on cells, the number of mines around that cell is displayed and players must guess the location of the mines.

Notifications You must be signed in to change notification settings

erencansev/minefield-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

readme-image


📍 Minefield game flowchart

readme-flowchart


📖 Information

Players try to find mines in a specific playing area. As players click on cells, the number of mines around that cell is displayed and players must guess the location of the mines. The game ends when all mines are checked or the player clicks on a mine.The purpose of the game, The aim is to win the game by opening all cells except all mines.


🔗 Features

  • Customizable Playground Dimensions: Players can customize the number of rows and columns of the playfield. This allows them to adjust the difficulty and complexity of the game.

  • Random Mine Placement: Mines are placed randomly on the playing field. This ensures that each game is different and requires players to adapt their strategies for each game.

  • Cell Opening: As players click on cells on the game board, the number of mines around that cell is displayed. They can expand the playing field by opening empty cells.

  • Game Status Check: The game ends when all mines are checked or the player clicks on a mine. It indicates whether the game was won or lost.

  • Replay Option: After the game ends, players are given the option to replay the game. This allows players to start a new game.


🧩 Row and Column Indexes

In this Minesweeper game, row and column indexes start from 0. That is, the first line on the game board is marked "0", the second line is marked "1", and so on. Likewise, the first column is marked "0", the second column is marked "1", and so on.

readme-info


🔨 Installation

Steps to run this project on your local machine:

  1. Clone this project:

    git clone https://github.com/erencansev/minefield-game.git
  2. Go to the project directory:

    cd minefield-game
  3. Run the code:

    java Main.java

Contact information

If you have questions, feedback or contributions regarding my project, you can reach me by email:

About

Players try to find mines in a specific playing area. As players click on cells, the number of mines around that cell is displayed and players must guess the location of the mines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages