๐Ÿ PyQuestโœ‚๏ธ Game: Rock Paper Scissors ยท โš–๏ธ Step 3: Who Actually Won?
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

Step 3: Who Actually Won? โš–๏ธ

Both players throw a move... and then nothing happens. ๐Ÿ˜ Your program has no idea who won, because nobody told it the rules yet.

The easy case is a tie: the two moves are equal.

The interesting case is winning, because there are exactly three ways to do it. Instead of writing three separate if blocks, join them with or โ€” if any one of them is true, the whole thing is true:

if (day == "sat" and sunny) or (day == "sun" and sunny):
    print("Beach time!")

Each pair needs and (both parts must match), and the pairs are joined by or. The three winning pairs: rock beats scissors, paper beats rock, scissors beats paper.

Your mission

  1. Keep both picks and both prints
  2. If the two picks are the same โžœ announce a tie ๐Ÿค
  3. elif the player's move beats the computer's (all three combos joined with or) โžœ they win! ๐Ÿ†
  4. else โžœ the computer wins ๐Ÿค–

Your code

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