print("ROCK, PAPER, SCISSORS")
print("======================")
print()
R = "rock"
P = "paper"
S = "scissors"
player1_score = 0
player2_score = 0
round = 0
while True:
round += 1
print("Round", round)
print("Select your move")
P1 = input("Player 1, select your option (R, P, S): ")
P2 = input("Player 2, select your option (R, P, S): ")
if P1 == P2:
print("It's a draw")
print("Try again")
elif (
(P1 == S and P2 == P) or
(P1 == R and P2 == S) or
(P1 == P and P2 == R)
):
print("Player 1 wins this round 👏")
player1_score += 1
elif (
(P2 == S and P1 == P) or
(P2 == R and P1 == S) or
(P2 == P and P1 == R)
):
print("Player 2 wins this round 👏")
player2_score += 1
print("Player 1 Score:", player1_score)
print("Player 2 Score:", player2_score)
continue
if player1_score >= 3:
print("Player 1 is the champion!")
break
elif player2_score >= 3:
print("Player 2 is the champion!")
break
print("Thanks for playing")
Hi @borobert2322 , welcome to the forums!
Can you put your code in triple backticks like this:
```py
Some code here
```
Thanks!
2 posts were merged into an existing topic: Day 017 - Project 17 : Rock Paper Scissors Multiple Rounds