The model representing the current state of the game.
- iOS 9.1+
- macOS 10.11.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
A game model—an instance of one of your custom classes implementing the
GKGame protocol—contains all the information necessary to describe a distinct state of your game. For example, the game model class for a Tic-Tac-Toe game would encode the locations of X and O marks currently on the board and which player’s turn is next. The strategist works from the current game model when planning moves.