An AI-powered terminal-based quiz game developed by Team ByteBrains. Features multiple-choice questions with intelligent hint system and AI-generated feedback using Google Gemini to enhance learning experience.
- Multiple-choice questions with four options (a, b, c, d)
- Score tracking throughout the quiz
- Manual hints after first incorrect answer
- AI-generated correct answers after second incorrect attempt
- Terminal-based interactive interface
- Built with Jac programming language
- Google Gemini AI integration for intelligent feedback
- Jac Language - Core quiz logic and execution
- Google Gemini AI - AI-powered answer feedback via API
- Python - Backend AI API integration
- Terminal/Console - User interface
- VS Code - Development environment
- Game displays welcome message and presents questions sequentially
- Each question shows four answer options (a, b, c, d)
- User input is evaluated:
- Correct answer: Score increases, "Correct!" message shown
- First incorrect attempt: Manual hint provided
- Second incorrect attempt: AI generates correct answer explanation
- Process repeats for all questions
- Final score and performance summary displayed
- Triggered only on second incorrect attempt per question
- Uses Gemini 1.5 Flash model via Jac's AI integration
- Generates helpful responses with correct answer format:
✅ Correct answer: a
- JacLang CLI installed
- Python 3.12 or above
- Google Gemini API key
- Visit Google MakerSuite
- Generate new API key from profile menu
- Set environment variable:
export GEMINI_API_KEY="your_api_key_here" # Windows: set GEMINI_API_KEY=your_api_key_here
# Run the quiz
jac run quiz_game.jac| Step | Description | Screenshot |
|---|---|---|
| 1 | Quiz Launch | ![]() |
| 2 | Multiple-choice Question | ![]() |
| 3 | Manual Hint Display | ![]() |
| 4 | AI-Generated Answer | ![]() |
| 5 | Correct Answer Confirmation | ![]() |
| 6 | Final Score Display | ![]() |
Team ByteBrains
MIT License





