Skip to content

About

C++练手项目之高仿WindowsXP扫雷

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mines_sweeper XP

A native Win32 + C++ remake of the classic Windows XP Minesweeper experience.

Features

  • Beginner, Intermediate, Expert, and Custom board sizes
  • First click is always safe
  • Flag and question-mark cell cycling on right click
  • Chording support on revealed number cells
  • Local best-time tracking for preset difficulties
  • Windows XP inspired look with classic counters, smiley reset button, and beveled panels

Project Structure

  • src/main.cpp: application entry point
  • src/app/: window management, dialogs, menus, and best-time persistence
  • src/game/: board state, rules, and game flow
  • src/ui/: layout, theme constants, and rendering
  • src/tests/: lightweight game logic verification harness

Build

Run the desktop build from the project root:

.\build.ps1

If mines_sweeper.exe is currently running, close it before rebuilding so the linker can overwrite the file.

Run

After building, launch the game from the project root:

.\mines_sweeper.exe

Test

Run the lightweight logic tests from the project root:

.\test.ps1

The test harness checks first-click safety, mark cycling, question-mark reveal behavior, custom settings application, and win detection.

Roadmap

The remaining polish work focuses on deeper visual fidelity and broader persistence features. See TODOLIST.md for the current checklist.

About

C++练手项目之高仿WindowsXP扫雷

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages