Rock Paper Scissors
Define an enum called Move with three variants: Rock, Paper, and Scissors.
Create two variables:
playerset toMove::Papercomputerset toMove::Rock
Use a match on the player's move to determine the result against the computer's Rock:
RockvsRock=> print It's a tie!PapervsRock=> print You win!ScissorsvsRock=> print You lose!
Hint: Since the computer always plays Rock, you only need to match on the player's move!
Expected output:
You win!
rust
fn main() {
}