Need a little help, (rock, paper, scissors program)
I started making (rather figuring out) a rock, paper, scissors program (based off on another guy's example) and I have the issue of when I run the program and I type in: Rock, paper or scissors: rock Rock, paper or scissors: paper I should get: You: -1 , but I always get: You: 1 whatever I change in the program itself (at least changes that I've tried). I would gadly hear suggestions on how to solve this problem and tips (maybe) as to how I could continue and upgrade on the program itself. Thank you all in advance. Here's the program: def game(a,b): human=a comp=b points=0 a=str(input("Rock, paper or scissors: ")) b=str(input("Rock, paper or scissors: ")) if human=="rock" and comp=="paper": human=points-1 print("You: "+str(human)) elif human=="rock" and comp=="scissors": human=points+1 print("You: "+str(human)) elif human=="paper" and comp=="rock": human=points+1 print("You: "+str(human)) elif human=="scissors" and comp=="rock": human=points-1 print("You: "+str(human)) elif human=="paper" and comp=="scissors": human=points-1 print("You: "+str(human)) elif human=="scissors" and comp=="paper": human=points+1 print("You: "+str(human)) elif human!="rock" and human!="paper" and human!="scissors": print("wrong choice, try again") elif comp!="rock" and comp!="paper" and comp!="scissors": print("network error") game("scissors","paper")