Welcome to GuessMaster — a simple yet engaging graphical number guessing game built using C++ and the SFML (Simple and Fast Multimedia Library). Whether you're testing your luck or improving your intuition, GuessMaster is a light-weight game to enjoy a few fun rounds of guessing!
GitHub: https://github.com/atharvbyadav/GuessMaster
- 🎲 Random number generation between 1 to 100
- ⌨️ Real-time input handling
- 🟡 Instant feedback: Too Low, Too High, or Correct!
- ✨ Clean and responsive GUI built using SFML
- 🖥️ Executable file included for direct play without compilation
GuessMaster/
├── GuessMaster.cpp # Main source code file
├── Executables/GuessMaster # Precompiled Linux executable (rename if necessary)
├── LICENSE # licensed under the MIT License
└── README.md # Project documentation
- Launch the game.
- Type your guess using number keys.
- Hit
Enterto submit your guess. - The game provides feedback on whether your guess is too high, too low, or correct.
- Win the game by guessing the correct number!
Make sure SFML is installed on your system.
On Debian/Ubuntu:
sudo apt update
sudo apt install libsfml-devTo build the game from source:
g++ GuessMaster.cpp -o GuessMaster -lsfml-graphics -lsfml-window -lsfml-system
./GuessMasterYou can also use CMake or your preferred IDE to compile the project.
If you’re on Linux, you can directly run the included executable:
chmod +x GuessMaster
./GuessMasterMake sure you have
libsfmldependencies installed.
- Uses C++'s
<random>library for true random number generation. - GUI elements like text rendering and input handling are managed using SFML.
- Input is taken directly from the keyboard, supporting number entry, backspace, and enter events.
Got suggestions or want to improve this project? Feel free to fork the repository, submit issues, or open pull requests. Contributions are always welcome!
This project is licensed under the MIT License. You are free to use, modify, and distribute this project with attribution.
Atharv Yadav
📌 GitHub
Enjoy the game and feel free to share it! 🎉