I need the second user to not be able to see the first user's input, but when it tells the second user to input, the first user's input is right in front of them
score=[0,0]
print("Welcome to Rock Paper Scissors! The score starts as",score)
while True:
player1=input("Player 1's turn: ")
player2=input("Player 2's turn: ")
if (player1.lower() in ["rock","r","rick","rok","roc","rck"]):
if (player2.lower() in ["scissors","s","scissor"]):
score[0]=score[0]+1
print("Player 1 wins! The score is now",score)
if (player2.lower() in ["rock","r","rick","rok","roc","rck"]):
print("It's a tie! The score remains",score)
if (player2.lower() in ["paper","p","pap","piper"]):
score[1]=score[1]+1
print("Player 2 wins! The score is now",score)
if (player1.lower() in ["scissors","s","scissor"]):
if (player2.lower() in ["scissors","s","scissor"]):
score[0]=score[0]+0
print("It's a tie! The score remains",score)
if (player2.lower() in ["rock","r","rick","rok","roc","rck"]):
score[1]=score[1]+1
print("Player 2 wins! The score is now",score)
if (player2.lower() in ["paper","p","pap","piper"]):
score[0]=score[0]+1
print("Player 1 wins! The score is now",score)
if (player1.lower() in ["paper","p","pap","piper"]):
if (player2.lower() in ["scissors","s","scissor"]):
score[1]=score[1]+1
print("Player 2 wins! The score is now",score)
if (player2.lower() in ["rock","r","rick","rok","roc","rck"]):
score[0]=score[0]+1
print("Player 1 wins! The score is now",score)
if (player2.lower() in ["paper","p","pap","piper"]):
score[0]=score[0]+0
print("It's a tie! The score remains",score)
print("N E X T G A M E")
The output is:
Player 1's turn: r
Player 2's turn:
now, player 2 would just use paper and win the game, so i need to hide what player 1 inputted somehow (I'm using Python 3.6.1)