Minesweeper_Qt

Minesweeper game made with C++/Qt/QML with improved classic GUI and cutomizable rules

MIT License

Stars
4
Committers
1

Minesweeper_Qt

Play in browser - WebAssembly version hosted on GitHub Pages

Minesweeper game with improved classic GUI. Cross-platform application made with C++/Qt/QML for Windows, Linux and WebAssembly.

Features

  • Classic minesweeper gameplay with clean GUI
  • Customizable difficulty options (field height and width, number of mines)
  • Resizable scale of field
  • Desktop and WebAssembly versions

Screenshots

Building Source Code

App supports Windows, Linux and WebAssembly (using Qt for WebAssembly). Prerequisites: Qt 6.5+, GCC (or other) C++ compiler, Qt Creator, Qt Linguist

  1. Download and install Qt6 and Qt Creator.
  2. Configure Qt Creator Kit for Desktop or WebAssembly using Emscripten.
  3. Clone the repo.
    git clone https://github.com/Dariarty/Minesweeper_Qt.git
    
  4. Open src/minesweeper.pro in Qt Creator.
  5. Run lrelease tool to read the TS files and produce the QM translation files.
    Qt Creator > Tools > External > Linguist > Release Translations (lrelease)
  6. Run qmake.
  7. Build the project in Qt Creator.

Attributions

Mine icons created by Creaticca Creative Agency - Flaticon

Cross icon created by Pixel Perfect - Flaticon

Emoji icons for reset button created by NajmunNahar - Flaticon

Flag icon created by sonnycandra - Freepik

License

Distributed under the MIT License. See LICENSE for more information.