Make a two-player Rock-Paper-Scissors game. (Hint: Ask for player plays (using input), compare them, print out a message of congratulations to the winner, and ask if the players want to start a new game
ask_p1 = input("Player 1, Enter rock/paper/scissors: ")
ask_p2 = input("Player 2, Enter rock/paper/scissors: ")
def rock_paper_scissors(p1, p2):
a_list = ["rock", "paper", "scissors"]
while p1 == p2:
print ("Nobody wins. Try again")
p1 = input("Player 1, Enter rock/paper/scissors: ")
p2 = input("Player 2, Enter rock/paper/scissors: ")
if p1 == "rock" and p2 == "paper":
print ("Player 2 wins!")
elif p1 == "paper" and p2 == "rock":
print ("Player 1 wins!")
elif p1 == "rock" and p2 == "scissors":
print ("Player 1 wins!")
elif p1 == "scissors" and p2 == "rock":
print ("Player 2 wins")
elif p1 == "paper" and p2 == "scissors":
print ("Player 2 wins!")
elif p1 == "scissors" and p2 == "paper":
print ("Player 1 wins!")
rock_paper_scissors(ask_p1, ask_p2)