Given two strings player1 and player2 representing moves in a game of Rock Paper Scissors, determine the result from player 1's perspective.
Each move is one of: "rock", "paper", or "scissors".
The rules are:
Return "win" if player 1 wins, "lose" if player 1 loses, or "draw" if both players chose the same move.
player1 = "rock", player2 = "scissors""win"player1 = "scissors", player2 = "rock""lose"player1 = "paper", player2 = "paper""draw"player1 and player2 are each one of "rock", "paper", or "scissors".Inputs are always lowercase.Run your code to see results
Use Cmd+Enter to run