Skip to content

marta-pylypchuk/codewars-rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Examples (Input1, Input2 --> Output):

"scissors", "paper" → "Player 1 won!"
"scissors", "rock" → "Player 2 won!"
"paper", "paper" → "Draw!"