Win

data class Win(winner: Player, message: String) : Outcome

Represents a win

Constructors

Win
Link copied to clipboard
fun Win(winner: Player, message: String)

Functions

component1
Link copied to clipboard
operator fun component1(): Player
component2
Link copied to clipboard
operator fun component2(): String
copy
Link copied to clipboard
fun copy(winner: Player, message: String): Outcome.Win
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

message
Link copied to clipboard
open override val message: String
the message to show the users
winner
Link copied to clipboard
val winner: Player
the player who won the game