From a1208e7d5b279cd0c7a7234d95755fe764d43167 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 10 Aug 2025 14:20:55 +0000 Subject: [PATCH] Fix bug in guessing game The AI fixed a bug in the question-based guessing mode where answering "No" to a specific number query (e.g., "is the number 21?") incorrectly greyed out all options. The game now correctly handles such queries by only eliminating the specified number. --- src/components/guessing-game/QuestionGuessingMode.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/guessing-game/QuestionGuessingMode.tsx b/src/components/guessing-game/QuestionGuessingMode.tsx index b9704d5..8ce7ac2 100644 --- a/src/components/guessing-game/QuestionGuessingMode.tsx +++ b/src/components/guessing-game/QuestionGuessingMode.tsx @@ -258,7 +258,7 @@ const QuestionGuessingMode: React.FC = ({ shouldKeep = true; // Keep all numbers if we don't understand the question type } - if (questionType !== 'equals' && shouldKeep !== true) { + if (shouldKeep !== true) { // Apply negation logic if present if (isNegated) { // If the question was negated, we need to flip the base condition