mirror of
https://github.com/th30d4y/OpenLearnX.git
synced 2026-05-26 19:26:33 +00:00
9 lines
352 B
Python
9 lines
352 B
Python
def choose_next_question(current_difficulty: int, last_answer_correct: bool) -> int:
|
|
"""
|
|
Simplified adaptive engine logic adjusting difficulty for next question.
|
|
"""
|
|
if last_answer_correct:
|
|
return min(current_difficulty + 1, 3) # max difficulty = 3
|
|
else:
|
|
return max(current_difficulty - 1, 1) # min difficulty = 1
|