penaltı çekme oyunu

import random

def penalty_kick():
   print("Welcome to the penalty shootout!")
   print("The goalkeeper will dive to one side, and you need to shoot to the other.")
   print("Choose where to shoot: left ('left'), center ('center'), or right ('right').")

   # Goalkeeper dives randomly to 'left', 'center', or 'right'
   goalie_position = random.choice(['left', 'center', 'right'])

   # User selects where to shoot
   user_choice = input("Where do you want to shoot? (left/center/right): ").lower()

   # Display goalkeeper's position and user's choice
   print(f"The goalkeeper dove to the {goalie_position}!")
   print(f"You aimed to the {user_choice} side!")

   # Check the result and display the outcome
   if goalie_position == user_choice:
       print("The goalkeeper saved it! Unfortunately, it's not a goal.")
   else:
       print("Goal! You scored a penalty!")

# Start the game
penalty_kick()