This is a Python-based GUI game that helps students debug C++ code with the help of AI-powered hints using Google's Gemini API. It's designed for educational use, where users learn by asking questions rather than being shown direct solutions.
Install dependencies from the included requirements.txt file:
pip install -r requirements.txtEnsure your Python version is 3.8+. tkinter should come pre-installed with standard Python distributions.
python codecatcher.pyThe game will open as a window where:
- You'll be shown buggy C++ code
- You can ask questions or submit answers
- Gemini will guide you without giving direct fixes
- Score is tracked based on attempts
This app uses Gemini API, so an internet connection is required.
Make sure to insert your API key in the script:
GEMINI_API_KEY = 'your-api-key-here'codecatcher_gui.pyโ Main applicationrequirements.txtโ Python dependenciesREADME.mdโ This file
Piyush Deshpande
AI-Powered Debugging Platform | Purdue University
Happy debugging! ๐๐งโ๐ป