Rock paper scissor
rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''
scissors = '''
_______
---' ____)____
______)
__________)
(____)
---.__(___)
'''
import random
map=[rock,paper,scissors]#r<p<s<r
a=int(input("enter a num 0,1,2 : "))
b=random.randint(0,2)
print(map[a])
print(map[b])
if a==b:
print("Its a draw")
if a==(b+1) :
print("You win")
if b==(a+1) :
print("You lost")
if a==2 and b==0:
print("You lost")
if a==0 and b==2:
print("You won")
Comments
Post a Comment