Created
October 15, 2018 15:54
-
-
Save waterlink/4876ff5a12f33a785f576b7f8c76856e to your computer and use it in GitHub Desktop.
step - 13
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 = when (first to second) { | |
SCISSORS to PAPER, | |
PAPER to ROCK, | |
ROCK to SCISSORS -> true | |
else -> false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment