---
title: gameModel
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkstrategist/gamemodel
---

# gameModel

The model representing the current state of the game.

## Declaration

```swift
var gameModel: (any GKGameModel)? { get set }
```

## Discussion

Discussion A game model—an instance of one of your custom classes implementing the GKGameModel 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. For more information, see GameplayKit Programming Guide.
