Match

class Match

This class represents a match between two players.

This is a facade created to enable exporting the code to JS, though it can also be used directly within the JS modules of any KMP project.

Properties

Link copied to clipboard

The player competing with the Black pieces. Can be null.

Link copied to clipboard

The result of the match. Usually initialized as a 'Pending' state and updated once the game is over.

Link copied to clipboard

The player competing with the White pieces. Can be null.

Functions

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