# jeu pierre, papier, ciseaux
# l'ordinateur joue au hasard

from random import randint

def ecrire(nombre):
    if nombre == 1:
        print("pierre",end=" ")
    elif nombre ==2:
        print("papier",end=" ")
    else :
        print("ciseaux",end=" ")
#fonction pour gérer qui va gérer qui gagner
def scores(mon_coup,ton_coup):
    global mon_score, ton_score
    #Vous pouvez utiliser 2 conditions à réaliser en même temps avec and ou une seule...
    if mon_coup == 1 and ton_coup == 2:
        #ton_score augmente d'un point
        ton_score += 1
    elif mon_coup == 2 and ton_coup == 1:
        mon_score += 1
    elif ...:
        ... += 1
    elif ..:
        ton_score += 1
    elif ...:
        ... += 1
    elif ...:
        ton_score += 1
        
ton_score = 0
mon_score = 0
print("Pierre-papier-ciseaux. Le premier à  10 a gagné !")
no_manche = 0
while mon_score < 10 and ton_score < 10:
    ton_coup = int(input("1 : pierre, 2 : papier, 3 : ciseaux ? "))
    while ton_coup < 1 or ton_coup > 3:
       ton_coup = int(input("1 : pierre, 2 : papier, 3 : ciseaux ? "))
    print("Vous montrez",end=" ")
    ecrire(ton_coup)
    mon_coup = randint(1,3)
    print("- Je montre",end=" ")
    ecrire(mon_coup)
    print()     # aller Ã  la ligne
    scores(mon_coup,ton_coup)
    print("vous",ton_score,"   moi",mon_score)

                  