Created
October 15, 2018 15:51
-
-
Save waterlink/13580e5e9c5e0adf5aafb6ca599be44e to your computer and use it in GitHub Desktop.
step - 11
This file contains 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 firstWins = rules(first, second) { | |
SCISSORS beats PAPER || | |
PAPER beats ROCK || | |
ROCK beats SCISSORS | |
} | |
if (firstWins) { | |
return FIRST_PLAYER | |
} | |
return SECOND_PLAYER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment