We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b2fefa commit 80adfcaCopy full SHA for 80adfca
brain_games/engine.py
@@ -11,7 +11,7 @@ def game_engine(game_description, question_generator):
11
question, correct = question_generator()
12
print(f"Question: {question}")
13
ans = input("Your answer: ").strip()
14
- if ans == str(ans):
+ if ans == str(correct):
15
score += 1
16
print("Correct!")
17
else:
0 commit comments