import random
r= ["r","p","s"]
d={'r':"rock",'p':"paper",'s':"scissors",'q':"quit"}
i=0
a=0
while True:
l=input("enter you choice:")
print("user has choosen",d[l])
x=random.choice(r)
print("computers has choosen",d[x])
if l=='q':
print("user's score",a)
print("computer's score",i)
if i>a:
print("computer won with ",i,"points")
elif i==a:
print("match drawn")
else :
print("user won with",a,"points")
exit()
elif l==x :
print("match drawn")
elif l=="rock" and x=="paper" or l=="scissors" and x=="rock" or x=="scissors"
and l=="paper":
print ("computer wins")
i=i+1
else:
print("you won")
a=a+1