Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 245 Bytes

(8 kyu) Rock Paper Scissors.md

File metadata and controls

11 lines (8 loc) · 245 Bytes

Rock Paper Scissors (8 kyu)

Let's play! You have to return which player won! In case of a draw return Draw!.

Examples:

rps('scissors','paper') // Player 1 won!
rps('scissors','rock') // Player 2 won!
rps('paper','paper') // Draw!