---
title: players
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkgamemodel/players
---

# players

The players currently in the game.

## Declaration

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

## Discussion

Discussion This array should contain instances of your player class (a custom class implementing the GKGameModelPlayer protocol) representing the players in the game. When you use the 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.

## See Also

### Keeping Track of Players

- [activePlayer](gameplaykit/gkgamemodel/activeplayer.md)
