[Eva] Ева, начинаем новую игру ChooseWord («Уг #47

Merged
Drobysh merged 21 commits from eva/chat-d4b957-backend into main 2026-10-15 17:11:33 +00:00
Showing only changes of commit 7ddfc2e451 - Show all commits
+2 -8
View File
@@ -113,20 +113,14 @@ async def get_next_quiz(request: Request):
options = wrong_options + [correct_polish] options = wrong_options + [correct_polish]
random.shuffle(options) random.shuffle(options)
if total_guessed <= 10: time_limit = 10 if difficulty == "hard" else None
difficulty = "easy"
elif total_guessed <= 30:
difficulty = "medium"
elif total_guessed <= 60:
difficulty = "hard"
else:
difficulty = "expert"
return { return {
"correct_polish": correct_polish, "correct_polish": correct_polish,
"translation": translation, "translation": translation,
"options": options, "options": options,
"difficulty": difficulty, "difficulty": difficulty,
"time_limit": time_limit,
} }