mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 12:25:10 -08:00
STY: Fix Flake8 issues
This commit is contained in:
@@ -16,6 +16,7 @@ filenames.
|
||||
|
||||
import time
|
||||
|
||||
|
||||
def print_with_tab(spaces_count, msg):
|
||||
if spaces_count > 0:
|
||||
spaces = " " * spaces_count
|
||||
@@ -23,6 +24,7 @@ def print_with_tab(spaces_count, msg):
|
||||
spaces = ""
|
||||
print(spaces + msg)
|
||||
|
||||
|
||||
def get_yes_or_no():
|
||||
while True:
|
||||
response = input().upper()
|
||||
@@ -59,7 +61,7 @@ def play_game():
|
||||
print("I FEEL YOUR ARITHMETIC IS IN ERROR.")
|
||||
print()
|
||||
print("LET'S TRY ANOTHER")
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
print_with_tab(33, "NICOMA")
|
||||
@@ -67,12 +69,12 @@ def main():
|
||||
print()
|
||||
print()
|
||||
print()
|
||||
|
||||
|
||||
print("BOOMERANG PUZZLE FROM ARITHMETICA OF NICOMACHUS -- A.D. 90!")
|
||||
print()
|
||||
while True:
|
||||
play_game()
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user