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:
parent
85b73a97c2
commit
a1208e7d5b
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ const QuestionGuessingMode: React.FC<QuestionGuessingModeProps> = ({
|
||||||
shouldKeep = true; // Keep all numbers if we don't understand the question type
|
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
|
// Apply negation logic if present
|
||||||
if (isNegated) {
|
if (isNegated) {
|
||||||
// If the question was negated, we need to flip the base condition
|
// If the question was negated, we need to flip the base condition
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue