Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

delphi-minesweeper

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Minesweeper

Game Features

  • A grid-based game board
    • Beginner (8x8, 15 mines)
    • Intermediate (16x16, 40 mines)
    • Expert (30x16, 99 mines)
    • Custom ([8..100]x[8..100], [1..9999] mines)
  • Randomly placed mines on the first move excluding the first selected tile (first save move)
  • Number hints on tiles indicating adjacent mines
  • Left-click to reveal a tile, right-click to flag/question/unmark a potential mine
    • Left click on a flagged tile will do nothing
    • Left click on a questioned tile will reveal it
    • Left click on an revealed tile will
      • reveal all adjacent tiles if the adjacent flags equals the adjacent mines
      • shows unrevealed adjacent tiles as revealed (without the adjacent mines information)
  • Winning condition: Reveal all non-mine tiles.
  • Losing condition: Reveal a mine ends the game
  • Tracks time

Implementation details

  • Separated game logic
  • UI with VCL

Screenshots

Beginner Start
Intermediate Play
Intermediate Lost