get

operator fun get(index: Int): Player?

Gets a player by index (0 for player1, 1 for player2).

Return

The player at the specified index, or null if not found.

Parameters

index

The index of the player (0 or 1).