print '*****ROCK PAPER SCISSORS (2)*****' a = 'rock' b = 'paper' if a == 'rock': a = 1 elif b == 'rock': b = 1 if a =='paper': a = 3 elif b =='paper': b = 3 if a =='scissors': a = 2 elif b =='scissors': b = 2 print a, b def choice(a, b): print 'Player 1: ' + a print 'Player 2: ' + b x = 'Player 1 wins' y = 'Player 2 wins' z = 'Tie!' if a == 'rock': a = 1 if b == 'rock': b = 1 if a =='paper': a = 3 if b =='paper': b = 3 if a =='scissors': a = 2 if b =='scissors': b = 2 if a - b == 0: return z elif b - a == 1: return x elif a - b == 1: return y elif a - b == 2: return x elif b - a == 2: return y print choice('scissors', 'scissors')