Skip to content

ThiruvarankanM/QuizGameAI_TeamByteBrains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QuizGame TeamByteBrains

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.

Features

  • 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

Tech Stack

  • 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

How It Works

  1. Game displays welcome message and presents questions sequentially
  2. Each question shows four answer options (a, b, c, d)
  3. 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
  4. Process repeats for all questions
  5. Final score and performance summary displayed

AI Integration

  • 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
    

Setup

Prerequisites

  • JacLang CLI installed
  • Python 3.12 or above
  • Google Gemini API key

API Key Configuration

  1. Visit Google MakerSuite
  2. Generate new API key from profile menu
  3. Set environment variable:
    export GEMINI_API_KEY="your_api_key_here"
    # Windows: set GEMINI_API_KEY=your_api_key_here

Run Game

# Run the quiz
jac run quiz_game.jac

Game Demo Screenshots

Step Description Screenshot
1 Quiz Launch Step 1
2 Multiple-choice Question Step 2
3 Manual Hint Display Step 3
4 AI-Generated Answer Step 4
5 Correct Answer Confirmation Step 5
6 Final Score Display Step 6

Development Team

Team ByteBrains

License

MIT License

About

QuizGame TeamByteBrains - AI-powered terminal quiz game built with Jac language. Features multiple-choice questions with progressive hint system and Google Gemini integration for intelligent feedback after incorrect attempts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors