GameResult

sealed class GameResult

Represents the result of a chess game.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
sealed class Draw : GameResult

Represents a drawn game.

Link copied to clipboard

The game is still ongoing.

Link copied to clipboard
data class Win(val winner: PieceColor) : GameResult

The game has been won by a player.

Properties

Link copied to clipboard

Indicates whether the game is over.