inquizzitive
inquizzitive copied to clipboard
Implemented Adaptive Difficulty Level
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
- Question Pool Management - Pre-generates questions for all difficulty levels (Easy, Medium, Hard)
- Performance Tracking - Monitors streaks and accuracy patterns
- Dynamic Question Replacement - Updates future questions in real-time based on answer accuracy
- State Management - Tracks current difficulty and performance history
- Visual feedback when difficulty changes
Files Modified
src/App.jsx- Main adaptive logic implementationsrc/index.css- New styles for adaptive elementsapi/getGeminiResponse.js- Enhanced prompts for difficulty-specific questionssrc/services/quizService.js- Adaptive mode data tracking
Fixes Issue #10. Thank you for reviewing my PR. Looking forward to more meaningful contributions!! 🚀
@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.