Skip to content

Commit

Permalink
fix: The command should be stopped, but it is running.
Browse files Browse the repository at this point in the history
  • Loading branch information
alinali87 committed Jul 3, 2024
1 parent 5f9d312 commit 91dbd03
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions brain_games/scripts/brain_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def calc_game(name):
print(f"'{a}' is wrong answer ;(. "
f"Correct answer was '{correct_answer}'.")
print(f"Let's try again, {name}!")
correct = 0
if correct == 3:
return False
if correct >= 3:
return True


Expand Down
4 changes: 2 additions & 2 deletions brain_games/scripts/brain_gcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def calc_game(name):
print(f"'{a}' is wrong answer ;(. "
f"Correct answer was '{correct_answer}'.")
print(f"Let's try again, {name}!")
correct = 0
if correct == 3:
return False
if correct >= 3:
return True


Expand Down
4 changes: 2 additions & 2 deletions brain_games/scripts/brain_prime.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def calc_game(name):
print(f"'{a}' is wrong answer ;(. "
f"Correct answer was '{correct_answer}'.")
print(f"Let's try again, {name}!")
correct = 0
if correct == 3:
return False
if correct >= 3:
return True


Expand Down
4 changes: 2 additions & 2 deletions brain_games/scripts/brain_progression.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def calc_game(name):
print(f"'{a}' is wrong answer ;(. "
f"Correct answer was '{correct_answer}'.")
print(f"Let's try again, {name}!")
correct = 0
if correct == 3:
return False
if correct >= 3:
return True


Expand Down

0 comments on commit 91dbd03

Please sign in to comment.