/Minesweeper-Game__UnityEngine

Minesweeper Game Using Unity Engine

Primary LanguageC#

Minesweeper Game

Project Assignment 2 - Computer Game Development and Animation , NITW (Winter 2021)

-----------------------------------------------------

📝 About The Project

For those of you not familiar with Minesweeper game, In Minesweeper, mines are scattered throughout a board, which is divided into cells. Cells have two states: unopened and opened. An unopened cell is blank and clickable, while an opened cell is exposed. this Contains 3 difficulty levels easy , medium and hard the number of mines are different in each level . You have to logically open all non mines bloack to win the game.If a player opens a mined cell, the game ends, as there is only one life per game. Otherwise, the opened cell displays either a number, indicating the number of mines diagonally and/or adjacent to it, or a blank tile (or "0"), and all adjacent non-mined cells will automatically be opened .

-----------------------------------------------------

☁️ Overview

In this project, A game of Minesweeper begins when the player makes the first click on a board with all cells unopened. This click is guaranteed to be safe with some variants further guaranteeing that all adjacent cells are safe as well. During the game, the player uses information given from the opened cells to deduce further cells that are safe to open, iteratively gaining more information to solve the board. I have used minesweeper algo to implement such logic of game.

-----------------------------------------------------

💻 Language and Tools Used

  • C# - For Coding Part and Libraries.
  • Visual Studio Code - Text Editor For Running C# Codes.
  • Unity Engine - For Handling Scripts with Runnable Environment.

-----------------------------------------------------

💾 Project Files Description

  • Scripts/Element.cs - Here all element like mines and number random generation algo and when game to declare won and lose resides.
  • Scripts/MainMenuScript.cs - Where all Main Menu UI design button allignment all resides.
  • Scripts/ScoreScript.cs - This Maintains the Score Increment With Every non mine bloack is opened.
  • Scripts/DifficultyScript.cs.cs - This Maintains all 3 difficulty level which change in number of mines and also reduces completion time.
  • Scripts/PlayField.cs - This Script Contain all detail about playing board like border and other Ui design that we see while playing.
  • Scripts/TimeScript.cs - This Keep Track of reverse timing of game onece time reach to 0 seconds it declare game over.
  • Scripts/GameOverScript.cs - This Contain GameOver Screen UI design and Score bar.

-----------------------------------------------------

⏯️ How to Run Game

Main-Menu

Help

DifficultyLevel

Gameplay

GameOver