Outcome

Represents the final or current result of a tournament match. Each outcome defines the points awarded to both the white and black players, as well as a standard string representation used for display.

Since

1.0.0-beta.8

Author

lunalobos

Entries

Link copied to clipboard

White Wins: 1 point for White, 0 for Black.

Link copied to clipboard

Black Wins: 0 points for White, 1 for Black.

Link copied to clipboard

Draw: 0.5 points for both players.

Link copied to clipboard

The match was suspended; no points are awarded.

Link copied to clipboard

The match is ongoing; points remain at 0.0 until finished.

Properties

Link copied to clipboard

The Score assigned to the black player.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

The official notation for the result (e.g., "1-0").

Link copied to clipboard

The Score assigned to the white player.

Functions

Link copied to clipboard
open override fun toString(): String

Returns the standard chess notation of the result.

Link copied to clipboard
fun valueOf(value: String): Outcome

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.