import random
# La liste des objets
objets = ["La pierre", "La feuille", "Les ciseaux"]
# Choix du joueur et de l'ordinateur
choix_joueur = int(input("La pierre = 0, La feuille =1, Les ciseaux = 2.\n\nQuel est votre choix ? "))
ordinateur = random.choice(objets)
# Afficher les choix
print(f"\nVous avez choisi {objets[choix_joueur].lower()}")
print(f"\nL'ordinateur a choisi {ordinateur.lower()}")
# Déterminer le gagnant
if choix_joueur == objets.index(ordinateur):
print("\n\t\tEGALITE")
elif ((choix_joueur == 0 and ordinateur.lower() == "la feuille") or (choix_joueur == 1 and ordinateur.lower() == "les ciseaux") or (choix_joueur == 2 and ordinateur.lower() == "la pierre")):
print("\n\t\tVOUS AVEZ PERDU")
else:
print("\n\t\tVOUS AVEZ GAGNE")