addMatch

open override fun addMatch(white: String, black: String?, outcome: String, id: Any?, round: Int?): Boolean

Adds a match to the tournament for the specified round. This method is ideal for cases where external logic is being used or an instance is being reconstructed.

Return

a boolean indicating whether the match was successfully added

Since

v1.0.0-beta.9c

Parameters

white

the white player

black

the black player or null if not applicable

outcome

the outcome as a string (WW, BW, DRAW, SUSPENDED, IN_GAME)

id

the id for the match

round

the round number, or null if not applicable (0-based)