mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-02-04 19:12:07 -08:00
Flake8 errors
This commit is contained in:
@@ -127,7 +127,7 @@ def print_header() -> None:
|
||||
|
||||
|
||||
def instructions() -> None:
|
||||
if wants_it := ask_binary(
|
||||
if _wants_it := ask_binary(
|
||||
"WOULD YOU LIKE THE INSTRUCTIONS? ", "ANSWER YES OR NO!!"
|
||||
):
|
||||
print()
|
||||
@@ -229,7 +229,7 @@ def team2_action(
|
||||
z1 = 3
|
||||
elif pass_value == 2:
|
||||
print("IT'S A ' 3 ON 2 '!\n")
|
||||
print(f"ONLY {team_a.players[3]} AND {team_a.players[4]}" + " ARE BACK.\n")
|
||||
print(f"ONLY {team_a.players[3]} AND {team_a.players[4]} ARE BACK.\n")
|
||||
print(
|
||||
team_b.players[player_index[j - 2]]
|
||||
+ " GIVES OFF TO "
|
||||
@@ -374,7 +374,7 @@ def handle_hit(
|
||||
else:
|
||||
print(f"{team_b.name}: {team_b.score}\t{team_a.name}: {team_a.score}\n")
|
||||
team = team_a if controlling_team == 1 else team_b
|
||||
print(f"GOAL SCORED BY: {team.players[goal_player]}" + "\n")
|
||||
print(f"GOAL SCORED BY: {team.players[goal_player]}\n")
|
||||
if goal_assistant1 != 0:
|
||||
if goal_assistant2 != 0:
|
||||
print(
|
||||
@@ -402,16 +402,16 @@ def handle_miss(
|
||||
saving_player = randint(1, 7)
|
||||
if controlling_team == 1:
|
||||
if saving_player == 1:
|
||||
print(f"KICK SAVE AND A BEAUTY BY {team_b.players[5]}" + "\n")
|
||||
print(f"CLEARED OUT BY {team_b.players[3]}" + "\n")
|
||||
print(f"KICK SAVE AND A BEAUTY BY {team_b.players[5]}\n")
|
||||
print(f"CLEARED OUT BY {team_b.players[3]}\n")
|
||||
remaining_time -= 1
|
||||
return ("continue", remaining_time)
|
||||
if saving_player == 2:
|
||||
print(f"WHAT A SPECTACULAR GLOVE SAVE BY {team_b.players[5]}" + "\n")
|
||||
print(f"WHAT A SPECTACULAR GLOVE SAVE BY {team_b.players[5]}\n")
|
||||
print(f"AND {team_b.players[5]}" + " GOLFS IT INTO THE CROWD\n")
|
||||
return ("break", remaining_time)
|
||||
if saving_player == 3:
|
||||
print(f"SKATE SAVE ON A LOW STEAMER BY {team_b.players[5]}" + "\n")
|
||||
print(f"SKATE SAVE ON A LOW STEAMER BY {team_b.players[5]}\n")
|
||||
remaining_time -= 1
|
||||
return ("continue", remaining_time)
|
||||
if saving_player == 4:
|
||||
@@ -447,20 +447,20 @@ def handle_miss(
|
||||
print("ON THE LOOSE PUCK!\n")
|
||||
return ("break", remaining_time)
|
||||
if saving_player == 3:
|
||||
print(f"SKATE SAVE BY {team_a.players[5]}" + "\n")
|
||||
print(f"SKATE SAVE BY {team_a.players[5]}\n")
|
||||
print(team_a.players[5] + " WHACKS THE LOOSE PUCK INTO THE STANDS\n")
|
||||
return ("break", remaining_time)
|
||||
if saving_player == 4:
|
||||
print(f"STICK SAVE BY {team_a.players[5]}" + " AND HE CLEARS IT OUT HIMSELF\n")
|
||||
print(f"STICK SAVE BY {team_a.players[5]} AND HE CLEARS IT OUT HIMSELF\n")
|
||||
remaining_time -= 1
|
||||
return ("continue", remaining_time)
|
||||
if saving_player == 5:
|
||||
print(f"KICKED OUT BY {team_a.players[5]}" + "\n")
|
||||
print(f"KICKED OUT BY {team_a.players[5]}\n")
|
||||
print("AND IT REBOUNDS ALL THE WAY TO CENTER ICE\n")
|
||||
remaining_time -= 1
|
||||
return ("continue", remaining_time)
|
||||
if saving_player == 6:
|
||||
print(f"GLOVE SAVE {team_a.players[5]}" + " AND HE HANGS ON\n")
|
||||
print(f"GLOVE SAVE {team_a.players[5]} AND HE HANGS ON\n")
|
||||
return ("break", remaining_time)
|
||||
return ("continue", remaining_time)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user