inquizzitive icon indicating copy to clipboard operation
inquizzitive copied to clipboard

Implemented Adaptive Difficulty Level

Open hudazaan opened this issue 1 year ago • 1 comments

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!! 🚀

hudazaan avatar Oct 11 '25 15:10 hudazaan

@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.

vercel[bot] avatar Oct 11 '25 15:10 vercel[bot]