Implement this protocol to describe a player in your turn-based game so that a strategist object can plan game moves.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
You adopt this protocol to describe the gameplay of your turn-based game for use by a
GKStrategist object. The strategist uses your player class, along with other custom classes you implement (adopting the
GKGame protocols) to plan moves in your game.
You use your custom class implementing this protocol in several places:
gamemethod of your game model class, to describe the set of moves currently valid for a specified player
Model Updates For Player:
Your class that implements this protocol can also contain properties and methods relevant to the implementation of your game—for example, an identifying color or name.