mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10:42 -08:00
Simplify Python Code
print_with_tab / print_with_whitespace is trivial with Python string formatting and was mostly used in only 2 lines.
This commit is contained in:
@@ -69,9 +69,9 @@ def play_game():
|
||||
player = 0
|
||||
alive = True
|
||||
while alive:
|
||||
print("")
|
||||
print()
|
||||
print(cookie.render())
|
||||
print("")
|
||||
print()
|
||||
player += 1
|
||||
if player > players:
|
||||
player = 1
|
||||
|
||||
Reference in New Issue
Block a user