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.
This commit is contained in:
gpt-engineer-app[bot] 2025-08-10 14:20:55 +00:00
parent 85b73a97c2
commit a1208e7d5b

View file

@ -258,7 +258,7 @@ const QuestionGuessingMode: React.FC<QuestionGuessingModeProps> = ({
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