---
title: minPlayers
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatchrequest/minplayers
---

# minPlayers

The minimum number of players that can join the match.

## Declaration

```swift
var minPlayers: Int { get set }
```

## Mentioned in

Finding multiple players for a game Finding players using matchmaking rules Starting turn-based matches and passing turns between players

## Discussion

Discussion The possible values range from 2 to the value returned by the maxPlayersAllowedForMatch(of:) method. To set the maximum number of players, use the maxPlayers property. If you use matchmaking rules, the rule set’s minPlayers field constrains this value. Set this property to a value in the range of the rule set’s minPlayers and maxPlayers fields. The default value is the rule set’s minPlayers field.

## See Also

### Related Documentation

- [Create a Rule Set](appstoreconnectapi/post-v1-gamecentermatchmakingrulesets.md)

### Restricting the number of players

- [maxPlayersAllowedForMatch(of:)](gamekit/gkmatchrequest/maxplayersallowedformatch(of:).md)
- [GKMatchType](gamekit/gkmatchtype.md)
- [maxPlayers](gamekit/gkmatchrequest/maxplayers.md)
- [defaultNumberOfPlayers](gamekit/gkmatchrequest/defaultnumberofplayers.md)
