Skip to content

BoscoBecker/MineSweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧨 Mine Sweeper - Delphi VCL Game

This is a simple clone of the classic Mine Sweeper game based in google MineSweeper, built using Delphi VCL. The goal is to reveal all cells that do not contain mines by using logic and deduction.

image

🛠️ Technologies

  • Delphi VCL
  • Native Delphi components (TButton, TPanel, TLabel, etc.)
  • SQlite
  • SKIA

🎮 How to Play

Extract the zip : Win32\Release\MineSweeper.exe or Win64\Release\MineSweeper.exe

  1. Open the project in Delphi (recommended: Delphi 11 or higher).
  2. Compile and run the project.
  3. Left-click to reveal a cell.
  4. Right-click to flag a suspected mine (🚩).
  5. If you click a mine, the game is over.
  6. You win when all non-mine cells are revealed.

🧩 Features

  • Configurable grid sizes (e.g., Easy, Medium, Hard).
  • Mine counter.
  • Timer.
  • Game reset button.
  • Flagging system.
  • Win/loss detection.
  • Clean and intuitive interface using native VCL controls.
  • Choose the target platform: Win32 or Win64.

📁 Project Structure

Root path: src/

├───Assets
├───Connection
├───Const
├───Controller
├───Data
├───Draw
├───Engine
├───Enum
├───Sound
├───View
├───Win32
│   ├───Debug
│   └───Release
└───Win64
    ├───Debug
    └───Release

🧠 Game Logic

  • Mines are randomly distributed when the game starts.
  • Each revealed cell shows the number of adjacent mines (0–8).
  • Recursive revealing is implemented for empty areas (cells with 0 adjacent mines).
  • Flags help the player track suspected mine locations.

🖼️ Screenshot

{236FC188-B549-410B-B003-D40E4665A80B}

{2D190C88-B78C-403B-AFD1-5845FE59BBD6}

{DE733962-2C4E-40B9-9FAE-C030E27E7490}

📋 Requirements

  • Delphi 10 or newer (can be adapted to earlier versions)
  • Windows OS

📃 License

This project is open-source and free to use for educational or personal purposes.

👨‍💻 Developed with passion in Delphi ❤️