From d181e43ee32b7656800fa54c8d4a835656f430f1 Mon Sep 17 00:00:00 2001 From: Drobysh Date: Tue, 13 Oct 2026 11:51:41 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20game.py:=20=D0=B2=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D0=B4=D0=B0=D1=86=D0=B8=D1=8F=20hard-=D1=80=D0=B5=D0=B6=D0=B8?= =?UTF-8?q?=D0=BC=D0=B0=20=D0=B2=20complete-level?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/game.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/routers/game.py b/routers/game.py index 5d42d00..17cbfa0 100644 --- a/routers/game.py +++ b/routers/game.py @@ -422,6 +422,13 @@ async def complete_level(request: Request): # -20 за каждую подсказку list_opened = bool(body.get("list_opened", False)) + # 🔧 НОВОЕ (13.10.2026): на Hard подсказки и список слов недоступны. + if difficulty == "hard" and (hints_used > 0 or list_opened): + raise HTTPException( + status_code=400, + detail="Hints and word list are disabled on Hard difficulty" + ) + # Очки: база 100, −20 за каждую подсказку, −20 за список слов, # +10 если без подсказок. # Формула: max(20, min(110, 100 - 20*hints_used - 20*list_opened + bonus))