Sign in to run tests against edge cases and save your code automatically.
Problem Description
Medium
Rock Paper Scissors Judge
PROSelection & Logic
Nested IF
Compound Conditions
Write a program that judges one round of Rock, Paper, Scissors. Input Player 1's choice, then Player 2's choice. Each choice is a single uppercase letter: `R` (rock), `P` (paper) or `S` (scissors).
Rock beats scissors, scissors beats paper, and paper beats rock. Output one of:
- `Player 1 wins`
- `Player 2 wins`
- `Draw`
Example Input
R
S
Example Output
Player 1 wins
Success Rate:
0% (0 passed / 0 attempted)
Code
Draft auto-saved
Test Results
Click "Test Code" to evaluate your code against the tests.