Outcome

sealed class Outcome

Represents an outcome of the game

Types

Draw
Link copied to clipboard
data class Draw(message: String) : Outcome
Represents a draw
Win
Link copied to clipboard
data class Win(winner: Player, message: String) : Outcome
Represents a win

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

message
Link copied to clipboard
open val message: String
the message to show the users

Inheritors

Outcome
Link copied to clipboard
Outcome
Link copied to clipboard