Skip to content

Commit 80adfca

Browse files
committed
minor update code v2
1 parent 2b2fefa commit 80adfca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brain_games/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def game_engine(game_description, question_generator):
1111
question, correct = question_generator()
1212
print(f"Question: {question}")
1313
ans = input("Your answer: ").strip()
14-
if ans == str(ans):
14+
if ans == str(correct):
1515
score += 1
1616
print("Correct!")
1717
else:

0 commit comments

Comments
 (0)