Rock, Paper, Scissors help!

def decide_winner(user_choice, computer_choice):
  print "You selected %s:" % user_choice
  print "Computer selecting..."
  print "Computer chose %s:" % computer_choice
  user_choice_index = options.index(user_choice)
  computer_choice_index = options.index(computer_choice)
	if user_choice_index == computer_choice_index:
    print "Its a tie"
	elif user_choice_index == 0 and computer_choice_index == 2:
    print WIN_MESSAGE
 	elif user_choice_index == 1 and computer_choice_index == 0:
    print WIN_MESSAGE
 	elif user_choice_index == 2 and computer_choice_index == 1:
    print WIN_MESSAGE

unexpected indent on line 13 but I thought it needed to be indented??? (Very new understanding on my end)


yea, that line needs indent but not as much as you currently gave it, look at it:



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.