C++ Code Quest 🏰⚔️

A storytelling-based web game to learn modern C++14 and C++17 concepts through interactive adventures.
🎮 Play Online
🚀 Play C++ Code Quest
🎯 Game Overview
Journey through mystical lands while mastering advanced C++ features:
- 🏛️ Temple of Auto: Learn auto type deduction and generic lambdas
- 🌟 Lambda Sanctuary: Master generalized capture and advanced lambdas
- 🔨 Smart Pointer Forge: Understand memory management with smart pointers
- 🏔️ Valley of Move Semantics: Perfect forwarding and move semantics
- 🏰 Citadel of Structured Bindings: Modern C++17 features
🧠 Learning Objectives
C++14 Features
- Auto type deduction for function return types
- Generic lambdas with auto parameters
- Generalized lambda capture (init capture)
- std::make_unique
- Variable templates
C++17 Features
- Structured bindings
- if constexpr
- Fold expressions
- std::optional
- std::variant
🚀 Quick Start
Play Online
Just visit the live demo and start playing!
Local Development
# Clone the repository
git clone https://github.com/starlord03/cpp-code-quest.git
cd cpp-code-quest
# Open in browser
open index.html
# Or use a local server
python -m http.server 8000
🎯 Game Mechanics
Each level teaches a specific concept through:
Story Context: Immersive narrative setting
Concept Explanation: Clear learning objectives
Code Challenge: Hands-on practice
Immediate Feedback: Hints and solutions
Progress Tracking: Achievement system
🏆 Achievements
Track your progress through the C++ mastery system:
📜 Auto Deduction Scroll
🏅 Lambda Mastery Badge
🛡️ Memory Guardian Shield
🚀 Move Semantics Mastery
👑 C++17 Grandmaster Crown
🤝 Contributing
Fork the repository
Create a feature branch (git checkout -b feature/new-level)
Add new levels or improve existing ones
Commit your changes (git commit -am 'Add new level')
Push to the branch (git push origin feature/new-level)
Create a Pull Request
📖 Documentation
Gameplay Guide
C++ Concepts Reference
Development Guide
🛠️ Technology Stack
Frontend: HTML5, CSS3, JavaScript
Deployment: GitHub Pages
Concepts: Modern C++14/17
📜 License
MIT License - see LICENSE file for details.
🌟 Acknowledgments
Created to make learning modern C++ concepts engaging and memorable
Inspired by the evolution of C++ standards
Built with ❤️ for the C++ community
"The best way to learn C++ is by writing C++ code!" - Bjarne Stroustrup
⭐ Star this repository if you found it helpful!