Skip to content

Instantly share code, notes, and snippets.

@waterlink
Created October 15, 2018 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waterlink/89e8df0354f1347e4f2ccc9fdcc64e07 to your computer and use it in GitHub Desktop.
Save waterlink/89e8df0354f1347e4f2ccc9fdcc64e07 to your computer and use it in GitHub Desktop.
step - 10
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