<!--
{
  "documentType" : "article",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/game-model-score-limits",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Game Model Score Limits"
}
-->

# Game Model Score Limits

Limits to values returned by the [`score(for:)`](/documentation/GameplayKit/GKGameModel/score(for:)) method.

## Discussion

When you evaluate the state of a game model in the [`score(for:)`](/documentation/GameplayKit/GKGameModel/score(for:)) method, the [`GKMinmaxStrategist`](/documentation/GameplayKit/GKMinmaxStrategist) class weights the resulting value by search depth and performs other calculations in its process of selecting an optimal move. To prevent overflow errors in such calculations, keep scores within the range of [`GKGameModelMinScore`](/documentation/GameplayKit/GKGameModelMinScore) to [`GKGameModelMaxScore`](/documentation/GameplayKit/GKGameModelMaxScore), inclusive.

## Topics

### Constants

[`var GKGameModelMaxScore: Int`](/documentation/GameplayKit/GKGameModelMaxScore)

The maximum return value allowed for the [`score(for:)`](/documentation/GameplayKit/GKGameModel/score(for:)) method.

[`var GKGameModelMinScore: Int`](/documentation/GameplayKit/GKGameModelMinScore)

The minimum return value allowed for the [`score(for:)`](/documentation/GameplayKit/GKGameModel/score(for:)) method.



---

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)