Your question is Rock Paper Scissors Coding. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
RAMP Consulting Group is prototyping a lightweight code-review game for interview practice. Implement a function that determines the winner of one Rock Paper Scissors round.
Given two valid moves, player1 and player2, return "Player 1" if the first move wins, "Player 2" if the second move wins, or "Tie" when both moves are identical.
player1 and player2. Each string is exactly one of "rock", "paper", or "scissors"."Player 1", "Player 2", or "Tie".def rps_winner(player1, player2):