A gamified web application for learning Python through interactive quests, code duels, live challenges, and an AI tutor.
- ๐บ๏ธ Interactive Quest Map: Progress through levels covering fundamentals, numbers, strings, logic, loops, lists, functions, and boss fights.
- โค๏ธ Hearts & Streak System: Answer conceptual quizzes with instant feedback and 3-heart life mechanic.
- โ๏ธ Code Duels: Write real Python code in the browser with server-side validation against expected outputs.
- ๐ฌ AI Coding Buddy: Chat with an AI tutor in multiple modes (Learn, Practice, Quiz, Debug).
- ๐ Badges & XP: Earn XP, unlock titles from Newbie to Legend, and collect badges.
git clone https://github.com/ayse-hatun/python-gaming-tutor.git
cd python-gaming-tutorpython -m venv .venv
# Windows:
.venv\Scripts\activate
# macOS / Linux:
source .venv/bin/activatepip install -r requirements.txtCopy .env.example to .env and configure your API key (Gemini or OpenRouter):
cp .env.example .envEdit .env:
GEMINI_API_KEY="your-api-key"python main.pyOpen your browser at http://127.0.0.1:8000.
