Skip to content

Instantly share code, notes, and snippets.

@waterlink
Created October 15, 2018 15:46
Show Gist options
  • Select an option

  • Save waterlink/b6428243012a2b183fe2e4d8d00e9821 to your computer and use it in GitHub Desktop.

Select an option

Save waterlink/b6428243012a2b183fe2e4d8d00e9821 to your computer and use it in GitHub Desktop.
step - 5
object SCISSORS : Throw {
override fun beats(other: Throw) = other == PAPER
}
object PAPER : Throw {
override fun beats(other: Throw) = other == ROCK
}
object ROCK : Throw {
override fun beats(other: Throw) = other == SCISSORS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment