Welcome to The Carnival Mystery, a C++ text-based adventure game where you help a girl named Liza recover her stolen diamond ring at a carnival! Explore booths, enjoy rides, collect clues, and solve the mystery — all while managing your points.
Liza is a girl who came to a carnival, only to discover that her ring has gone missing. The ring holds a priceless diamond, and rumor has it that the thief is still lurking somewhere within the carnival grounds. You, the player, must navigate through various attractions to collect tokens, products, and clues that will lead you to the thief — and Liza's ring — before it's too late.
- Begin your adventure with 50 points.
- Visit Game Booths to win tokens and earn extra points.
- Visit Food Stands to buy products. After buying 2, 4, and 5 products, you’ll collect 3 different clues.
- Enjoy Rides for fun and potential point boosts, but beware of breakdowns.
- Your final goal is to:
- Collect 5 products from food stands (with at least 3 different types),
- Obtain all 3 clues,
- Finish with at least 100 points to successfully solve the mystery.
You cannot backtrack — plan your choices carefully.
- Mini number-guessing game booths
- Food stalls that unlock clues
- Carnival rides with random events and emergency contact scenarios
- Points system to track progress and determine win condition
- Mystery-solving with progressive story elements
Make sure you have a C++ compiler (like g++) installed.
- Open your terminal.
- Navigate to the directory containing
TheCarnivalMystery.cpp. - Compile:
g++ TheCarnivalMystery.cpp -o TheCarnivalMystery- Run:
./TheCarnivalMysteryTo win the game, you must:
- Collect all 3 clues
- Buy 5 products
- End with at least 100 points
- Santhusha Mudannayaka
- Project for interactive storytelling and game design using object-oriented programming in C++
This project is for educational purposes. Modify and expand it to suit your creativity!
🎉 Good luck solving The Carnival Mystery!
