from getpass import getpass as input
print("E P I C 🪨 📄 ✂️ B A T T L E ")
countPlayer1 = 0
countPlayer2 = 0
while True:
print("Select your move (R, P or S)")
print()
player1Move = input("Player 1 > ")
player2Move = input("Player 2 > ")
if player1Move == "R" and player2Move == "R" or player1Move == "P" and player2Move == "P" or player1Move == "S" and player2Move == "S":
print("Draw! No points awarded.")
continue
elif player1Move == "R" and player2Move == "P"or player1Move == "P" and player2Move == "S":
print("In this round, Player 2 wins!")
countPlayer2 += 1
if countPlayer1 == 3:
print ('Player 1 has', countPlayer1, 'points and wins. And Player 2 has', countPlayer2, 'wins.')
exit()
elif countPlayer2 == 3:
print ('Player 2 has', countPlayer2, 'points and wins. And Player 1 has', countPlayer1, 'wins.')
exit()
else:
continue
elif player1Move == "R" and player2Move == "S"or player1Move == "P" and player2Move == "R":
print("In this round, Player 1 wins!")
countPlayer1 += 1
if countPlayer1 == 3:
print ('Player 1 has', countPlayer1, 'wins. And Player 2 has', countPlayer2, 'wins.')
exit()
elif countPlayer2 == 3:
print ('Player 2 has', countPlayer2, 'wins. And Player 1 has', countPlayer1, 'wins.')
exit()
else:
continue
else:
print("Try Again, invalid entry!")
continue