Skip to content

Commit 371891b

Browse files
committed
Streamline game result handling
1 parent ad27c01 commit 371891b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Minesweep/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ def play_lost_sound():
197197

198198
while True:
199199
reset_board()
200-
result = play_a_game()
201-
if result is None:
202-
pass
203-
elif result:
200+
if play_a_game():
201+
print('You won')
204202
play_won_sound()
205203
else:
204+
print('You lost')
206205
play_lost_sound()
206+
time.sleep(10.0)

0 commit comments

Comments
 (0)