Git Product home page Git Product logo

mine-sweeper-game's Introduction

Mine-Sweeper-Game

The first project of the full stack web developer bootcamp at Patika Plus. It is a text-based minefield game created by taking the game difficulty from the user.

Semih Turan Github Account

Purpose

This repository serves as a comprehensive record of my learning journey, designed to document progress and provide a reference point for personal reflection and potential collaboration. Through its centralized structure, I aim to create an organized and accessible archive of my coding pursuits.

Getting Started

1- Clone the repository

    git clone https://github.com/semih-turan/Mine-Sweeper-Game.git   

2- Navigate to the repository

    cd MineSweeperGame/src

3- Compile the project

    javac Main.java

4- Run the project

    java Main.java

How to play

Minesweeper is a logic puzzle game typically played as a computer game. The objective of the game is to clear all non-mine tiles on a grid-based field without detonating any mines.

Here are the basic rules of Minesweeper:

Minefield: The game is played on a grid-based field. This grid can vary in size, typically ranging from 9x9, 16x16, or 16x30, among others. A minimum grid size of 2x2 can be selected.

Mines: At the start of the game, some tiles contain mines. The positions of the mines are randomly determined.

Player Moves: In each turn, the player selects and reveals a tile. The revealed tiles provide information to the player.

Numbers and Empty Spaces: If a revealed tile contains a number, it indicates the number of mines adjacent to that tile. If a revealed tile does not contain a number and does not hide a mine, it and the adjacent empty tiles are revealed.

Flagging: Players can mark a tile by placing a flag on it if they suspect there is a mine. This should be taken into account when opening other tiles. (Flagging is not included in this game.)

Mine Detection: If a tile containing a mine is revealed, the game is lost.

Game Completion: The game is completed when all non-mine tiles are revealed and all mine tiles are flagged.


Screenshots

Welcome Screen

Welcome Screen

Win Condition

Win Screen

Failed Condition

Fail Screen


Requirements

  • Java JDK 21.0.2

Usage Rights

All projects and practice exercises are freely available for use. You are welcome to explore, modify, and share them as you wish. If you have any questions, please don't hesitate to contact me.

mine-sweeper-game's People

Contributors

semih-turan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.