import random

def gameWin(comp,you):
    if(comp==you):
        return False
    elif(comp=='s'):
        if(you=='w'):
            return False
        elif(you=='g'):
            return True
    elif(comp=='w'):
        if(you=='s'):
            return True
        elif(you=='g'):
            return False
    elif(comp=='g'):
        if(you=='w'):
            return True
        elif(you=='s'):
            return False
        
print("Comp turn: Snake(s) Water(w) Gun(g) ?")
randNo=random.randint(1,3)
if(randNo==1):
    comp='s'
elif(randNo==2):
    comp='w'
elif(randNo==3):
    comp='g'

you=input("Your turn: Snake(s) Water(w) Gun(g) ?")
a=gameWin(comp,you)

print(f"Computer chose {comp}")
print(f"you chose {you}")
if(a==None):
    print("Game is a tie!")
elif(a):
    print("You Win!")
else:
    print("You Lose!")


