22 lines
446 B
Kotlin
22 lines
446 B
Kotlin
package rps
|
|
|
|
fun main() {
|
|
println("Hello, world")
|
|
}
|
|
|
|
/** A possible move in a game of rock-paper-scissors. */
|
|
enum class Move {
|
|
ROCK,
|
|
PAPER,
|
|
SCISSORS
|
|
}
|
|
|
|
// purposely not calling this Result to avoid confusion with kotlin.Result and similar
|
|
enum class Outcome {
|
|
WIN,
|
|
DRAW,
|
|
LOSS
|
|
}
|
|
|
|
/** Determine the [Outcome] of [first] vs [second] from the perspective of [first]. */
|
|
fun determineOutcome(first: Move, second: Move): Outcome = TODO() |