@@ -127,7 +127,7 @@ def print_header() -> None:
127127
128128
129129def instructions () -> None :
130- if wants_it := ask_binary (
130+ if ask_binary (
131131 "WOULD YOU LIKE THE INSTRUCTIONS? " , "ANSWER YES OR NO!!"
132132 ):
133133 print ()
@@ -229,7 +229,7 @@ def team2_action(
229229 z1 = 3
230230 elif pass_value == 2 :
231231 print ("IT'S A ' 3 ON 2 '!\n " )
232- print (f"ONLY { team_a .players [3 ]} AND { team_a .players [4 ]} " + " ARE BACK.\n " )
232+ print (f"ONLY { team_a .players [3 ]} AND { team_a .players [4 ]} ARE BACK.\n " )
233233 print (
234234 team_b .players [player_index [j - 2 ]]
235235 + " GIVES OFF TO "
@@ -374,7 +374,7 @@ def handle_hit(
374374 else :
375375 print (f"{ team_b .name } : { team_b .score } \t { team_a .name } : { team_a .score } \n " )
376376 team = team_a if controlling_team == 1 else team_b
377- print (f"GOAL SCORED BY: { team .players [goal_player ]} " + " \n " )
377+ print (f"GOAL SCORED BY: { team .players [goal_player ]} \n " )
378378 if goal_assistant1 != 0 :
379379 if goal_assistant2 != 0 :
380380 print (
@@ -402,16 +402,16 @@ def handle_miss(
402402 saving_player = randint (1 , 7 )
403403 if controlling_team == 1 :
404404 if saving_player == 1 :
405- print (f"KICK SAVE AND A BEAUTY BY { team_b .players [5 ]} " + " \n " )
406- print (f"CLEARED OUT BY { team_b .players [3 ]} " + " \n " )
405+ print (f"KICK SAVE AND A BEAUTY BY { team_b .players [5 ]} \n " )
406+ print (f"CLEARED OUT BY { team_b .players [3 ]} \n " )
407407 remaining_time -= 1
408408 return ("continue" , remaining_time )
409409 if saving_player == 2 :
410- print (f"WHAT A SPECTACULAR GLOVE SAVE BY { team_b .players [5 ]} " + " \n " )
411- print (f"AND { team_b .players [5 ]} " + " GOLFS IT INTO THE CROWD\n " )
410+ print (f"WHAT A SPECTACULAR GLOVE SAVE BY { team_b .players [5 ]} \n " )
411+ print (f"AND { team_b .players [5 ]} GOLFS IT INTO THE CROWD\n " )
412412 return ("break" , remaining_time )
413413 if saving_player == 3 :
414- print (f"SKATE SAVE ON A LOW STEAMER BY { team_b .players [5 ]} " + " \n " )
414+ print (f"SKATE SAVE ON A LOW STEAMER BY { team_b .players [5 ]} \n " )
415415 remaining_time -= 1
416416 return ("continue" , remaining_time )
417417 if saving_player == 4 :
@@ -447,20 +447,20 @@ def handle_miss(
447447 print ("ON THE LOOSE PUCK!\n " )
448448 return ("break" , remaining_time )
449449 if saving_player == 3 :
450- print (f"SKATE SAVE BY { team_a .players [5 ]} " + " \n " )
450+ print (f"SKATE SAVE BY { team_a .players [5 ]} \n " )
451451 print (team_a .players [5 ] + " WHACKS THE LOOSE PUCK INTO THE STANDS\n " )
452452 return ("break" , remaining_time )
453453 if saving_player == 4 :
454- print (f"STICK SAVE BY { team_a .players [5 ]} " + " AND HE CLEARS IT OUT HIMSELF\n " )
454+ print (f"STICK SAVE BY { team_a .players [5 ]} AND HE CLEARS IT OUT HIMSELF\n " )
455455 remaining_time -= 1
456456 return ("continue" , remaining_time )
457457 if saving_player == 5 :
458- print (f"KICKED OUT BY { team_a .players [5 ]} " + " \n " )
458+ print (f"KICKED OUT BY { team_a .players [5 ]} \n " )
459459 print ("AND IT REBOUNDS ALL THE WAY TO CENTER ICE\n " )
460460 remaining_time -= 1
461461 return ("continue" , remaining_time )
462462 if saving_player == 6 :
463- print (f"GLOVE SAVE { team_a .players [5 ]} " + " AND HE HANGS ON\n " )
463+ print (f"GLOVE SAVE { team_a .players [5 ]} AND HE HANGS ON\n " )
464464 return ("break" , remaining_time )
465465 return ("continue" , remaining_time )
466466
0 commit comments