mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 12:25:10 -08:00
MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be many adjustments necessary
This commit is contained in:
@@ -32,10 +32,10 @@ def parse_input():
|
||||
correct_input = False
|
||||
while not correct_input:
|
||||
try:
|
||||
i = int(input('? '))
|
||||
i = int(input("? "))
|
||||
correct_input = True
|
||||
except ValueError:
|
||||
print('Number expected...')
|
||||
print("Number expected...")
|
||||
return i
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ initial_message()
|
||||
while True:
|
||||
dead = False
|
||||
n = 0
|
||||
print("Type \'1\' to Spin chamber and pull trigger")
|
||||
print("Type \'2\' to Give up")
|
||||
print("Type '1' to Spin chamber and pull trigger")
|
||||
print("Type '2' to Give up")
|
||||
print("Go")
|
||||
while not dead:
|
||||
i = parse_input()
|
||||
|
||||
Reference in New Issue
Block a user