Skip to content

Conversation

@hudazaan
Copy link

Description

This PR implements a sophisticated adaptive difficulty system that dynamically adjusts question difficulty based on user performance during quizzes. The system automatically makes questions harder when users excel and easier when they struggle, creating a personalized learning experience.

Features Added

🔄 Adaptive Behavior

  • 2 correct answers in a row → Difficulty increases (Medium → Hard)
  • 1 incorrect answer → Difficulty decreases (Hard → Medium, Medium → Easy)
  • Overall accuracy below 50% → Emergency difficulty reduction

🎨 User Experience

  • Adaptive mode toggle in quiz setup
  • Real-time difficulty indicators on each question
  • Smooth difficulty change animations
  • Clear visual feedback for difficulty transitions

Technical Implementation

Key Components

  1. Question Pool Management - Pre-generates questions for all difficulty levels (Easy, Medium, Hard)
  2. Performance Tracking - Monitors streaks and accuracy patterns
  3. Dynamic Question Replacement - Updates future questions in real-time based on answer accuracy
  4. State Management - Tracks current difficulty and performance history
  5. Visual feedback when difficulty changes

Files Modified

  • src/App.jsx - Main adaptive logic implementation
  • src/index.css - New styles for adaptive elements
  • api/getGeminiResponse.js - Enhanced prompts for difficulty-specific questions
  • src/services/quizService.js - Adaptive mode data tracking

Fixes Issue #10. Thank you for reviewing my PR. Looking forward to more meaningful contributions!! 🚀

@vercel
Copy link

vercel bot commented Oct 11, 2025

@hudazaan is attempting to deploy a commit to the Sowham Bhuin's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant