Skip to content

Commit

Permalink
modify engine.py in brain_games dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sayat-a committed Jun 23, 2024
1 parent 6a59798 commit d6aef67
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions brain_games/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def congratulate(name):
print(f'Congratulations, {name}!')


def start_game(game):
def start_game(game, GAME_RULES):
user_name = greet_user()
game.show_rules()
print(GAME_RULES)
count = 0
while count < 3:
right_answer = game.generate_question()
right_answer, question = game.generate_question()
print(question)
answer = ask_user_answer()
if answer == str(right_answer):
count = win_round(count)
Expand Down

0 comments on commit d6aef67

Please sign in to comment.