Remove missed error; remove underscored-unused variables

This commit is contained in:
Brian Wignall
2026-01-04 05:09:20 -05:00
parent 786eb181b4
commit 5b89735219
7 changed files with 8 additions and 8 deletions

View File

@@ -131,7 +131,7 @@ def main() -> None:
# Main loop of game
print_intro()
while (
_keep_playing := parse_input(
parse_input(
"Are you thinking of an animal? ", True, root
)
== "y"

View File

@@ -29,7 +29,7 @@ def determine_player_kills(
print(f"THE {player_type}{plural_form} DID A {job_qualities[job_quality]} JOB.")
if job_quality >= 4:
if job_quality == 5:
if _player_was_killed := random.choice([True, False]):
if random.choice([True, False]):
print(f"ONE OF THE {player_type}{plural_form} WAS KILLED.")
else:
if player_type != "TOREAD":

View File

@@ -127,7 +127,7 @@ def print_header() -> None:
def instructions() -> None:
if _wants_it := ask_binary(
if ask_binary(
"WOULD YOU LIKE THE INSTRUCTIONS? ", "ANSWER YES OR NO!!"
):
print()
@@ -408,7 +408,7 @@ def handle_miss(
return ("continue", remaining_time)
if saving_player == 2:
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")
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")

View File

@@ -324,7 +324,7 @@ def run_simulation() -> None:
return
if capsule.velocity > 0 and new_state.velocity < 0:
if _landed := handle_flyaway(sim_clock, capsule):
if handle_flyaway(sim_clock, capsule):
process_final_tick(delta_t, sim_clock, capsule)
return

View File

@@ -43,7 +43,7 @@ def play_game() -> None:
print(f"YOUR NUMBER WAS {d}, RIGHT?")
if _response := get_yes_or_no():
if get_yes_or_no():
print("HOW ABOUT THAT!!")
else:
print("I FEEL YOUR ARITHMETIC IS IN ERROR.")

View File

@@ -96,7 +96,7 @@ def main() -> None:
f"\nA.I MOVE - A.I Removed {ai_command[1]} pegs from Pile {ai_command[0]}"
)
game.remove_pegs(f"{str(ai_command[0])},{str(ai_command[1])}")
if _end := game.check_for_win():
if game.check_for_win():
print("\nComputer Wins the Game, Better Luck Next Time\n")
input("Press any key to exit")
break

View File

@@ -155,7 +155,7 @@ def main() -> None:
player_name = print_instructions()
if _more_directions := yes_no_prompt("DO YOU NEED MORE DIRECTIONS?"):
if yes_no_prompt("DO YOU NEED MORE DIRECTIONS?"):
print_more_directions(player_name)
understand = yes_no_prompt("UNDERSTAND?")