๐Ÿ PyQuestโœ‚๏ธ Game: Rock Paper Scissors ยท ๐Ÿ† Step 4: Best of Three
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

Step 4: Best of Three ๐Ÿ†

One round, one winner, program over. A real showdown goes to best of three โ€” first player to 2 wins takes the trophy. ๐Ÿ†

That means two things your game doesn't have yet: scores that remember what happened, and a loop that keeps playing until somebody reaches 2:

points = 0
while points < 3:
    points = points + 1
    print(f"Points so far: {points}")

The loop condition is the whole game: while player_score < 2 and computer_score < 2: keeps going only while neither of you has 2 wins.

One thing that's easy to miss: the computer's random.choice() has to move inside the loop. Outside it, the computer picks once and throws the exact same move all match. ๐Ÿ—ฟ

Your mission

  1. Before the loop, make player_score = 0 and computer_score = 0
  2. Open with a banner title screen ("=" * 30 style)
  3. while player_score < 2 and computer_score < 2: โ€” inside it, run a full round: computer picks, player types, winner decided
  4. Add 1 to the winner's score (a tie scores nothing!) and print the score after every round
  5. After the loop, announce the champion between banner lines ๐ŸŽ‰

Your code

Press โ–ถ Run to see what your code does!