Created
October 15, 2018 15:50
-
-
Save waterlink/89e8df0354f1347e4f2ccc9fdcc64e07 to your computer and use it in GitHub Desktop.
step - 10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val scissorsBeatPaper = first == SCISSORS && second == PAPER | |
val paperBeatsRock = first == PAPER && second == ROCK | |
val rockBeatsScissors = first == ROCK && second == SCISSORS | |
if (scissorsBeatPaper || paperBeatsRock || rockBeatsScissors) { | |
return FIRST_PLAYER | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment