addPlayerOrNull

fun addPlayerOrNull(newPlayerName: Player): MatchPlayers?

Adds a new player to the match if there is space available and the player type is not already taken.

Return

A new MatchPlayers with the added player, or null if the player could not be added.

Parameters

newPlayerName

The player to add.