Step 2: Your Move ๐
The computer throws a move every time you run โ but it's shadowboxing. Nobody is playing against it! ๐ป
Give the human a turn with input(). Because both moves are just text,
you can show them side by side in one f-string:
flavor = input("Pick a flavor: ")
print(f"You chose {flavor} and I chose mint.")
Ask before you announce anything โ otherwise you'd be showing your hand first, and that's not how a duel works. ๐
Your mission
- Keep the computer's random pick
- Ask the player for their move:
player = input("rock, paper or scissors? ") - Print both picks using f-strings โ the player's move and the computer's
Your code
Press โถ Run to see what your code does!