A C++ console-based adventure game with mini-games Word-Based Adventure Game is a console-based C++ game set in the mysterious Mansion of Destiny. The player wakes up in an eerie mansion and must complete a series of mini-games across 7 rooms to survive and escape. Each room presents a unique challenge, ranging from number guessing and riddles to puzzles and a boss battle.
This project demonstrates object-oriented design, user input validation, and multi-file C++ architecture — perfect for showcasing beginner-to-intermediate C++ skills.
- 7 interactive rooms with mini-games:
- 🔢 Guess the Number
- 🔠 Secret Word Guess
- ➕ Solve a System of Equations
- ✊🖐✌️ Rock-Paper-Scissors
- 🐎 Horse Racing
- 🧠 Puzzle / Riddle Challenge
- 🧭 Maze Navigation + Boss Battle
- Health-based survival system
- ASCII art and dramatic game narration
- Replay support after game over
- Strong object-oriented structure
| File | Description |
|---|---|
main.cpp |
Entry point of the program |
Game.cpp/hpp |
Manages game logic and room transitions |
Room.cpp/hpp |
Contains all mini-games and room logic |
Player.cpp/hpp |
Handles player health, inventory, and status |
- C++ compiler (g++)
- Xcode Command Line Tools (macOS):
xcode-select --install