import random # 1-rock # 2-paper # 3-scissors print 'Welcome to play Rock-paper-scissors game!' computer_choice = random.randint(1,3) print 'Please give your choice:' print '1 - rock' print '2 - paper' print '3 - scissors' user_choice = int(raw_input()) if computer_choice == 1: print 'The computer played Rock.' if user_choice == 1: print 'You played Rock.' print 'The game is tied' else: if user_choice == 2: print 'You played Paper.' print 'You won!' else: print 'You played Scissors.' print 'You lost!' if computer_choice == 2: print 'The computer played Paper.' if user_choice == 2: print 'You played Paper.' print 'The game is tied' else: if user_choice == 3: print 'You played Scissors.' print 'You won!' else: print 'You played Rock.' print 'You lost!' if computer_choice == 3: print 'The computer played Scissors.' if user_choice == 3: print 'You played Scissors.' print 'The game is tied' else: if user_choice == 1: print 'You played Rock.' print 'You won!' else: print 'You played Paper.' print 'You lost!'