<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKGameModel/players",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKGameModel(py)players"
  },
  "title" : "players"
}
-->

# players

The players currently in the game.

```
var players: [any GKGameModelPlayer]? { get }
```

## Discussion

This array should contain instances of your player class (a custom class implementing the [`GKGameModelPlayer`](/documentation/GameplayKit/GKGameModelPlayer) protocol) representing the players in the game. When you use the [`GKMinmaxStrategist`](/documentation/GameplayKit/GKMinmaxStrategist) class to find an optimal move for a specific player, GameplayKit uses this array to rate the moves of that player’s opponent(s).

For more information, see [GameplayKit Programming Guide](https://developer.apple.com/library/archive/documentation/General/Conceptual/GameplayKit_Guide/index.html#//apple_ref/doc/uid/TP40015172).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)