Game Model Score Limits

Limits to values returned by the scoreForPlayer: method.

Overview

When you evaluate the state of a game model in the scoreForPlayer: method, the 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 to GKGameModelMaxScore, inclusive.

Topics

Constants

GKGameModelMaxScore

The maximum return value allowed for the scoreForPlayer: method.

GKGameModelMinScore

The minimum return value allowed for the scoreForPlayer: method.