// should return player1 (the winner)rockpaperscissors(2, 1)
// should return tie (it's a tie)rockpaperscissors(1, 1)
Main function, you need to pass 2 numbers.
either "player1", "player2" (whoever won) or "tie" for a tie.
1 for rock, 2 for paper, 3 for scissors
Generated using TypeDoc
Example
Example
Description
Main function, you need to pass 2 numbers.
Returns
either "player1", "player2" (whoever won) or "tie" for a tie.