Trying to build a very basic rock paper scissors code, but after adding the function it doesn't seem to work, could anyone tell me, why?
print "1 stands for paper, 2 stands for rock, 3 stand for scissors"
signs = [1, 2, 3]
gaming = 1
def game():
from random import choice
pc = raw_input("pick a sign, use the numbers shown above ")
i = int(pc)
cc = choice(signs)
if i - cc == 0 : # 3 values
print "it's a draw"
elif i - cc == 1 : # 2 values
print "you lose"
elif i - cc == 2 : # 1 value
print "you win"
elif i - cc == -1 : # 2 values
print "you win"
elif i - cc == -2 : # 1 value
print "you lose"
gamin = raw_input("if you want to play again, press 1")
gaming = int(gamin)
while gaming == 1 :
game