Contents

activePlayer

The player whose turn it currently is in the game.

Declaration

var activePlayer: (any GKGameModelPlayer)? { get }

Discussion

This player is responsible for the next move. GameplayKit assumes that the next call to the apply(_:) method will perform a move on behalf of this player.

See Also

Keeping Track of Players