Instance Property

value

A value assigned and read by GameplayKit to rate the desirability of a move in your game.

Required.

Declaration

var value: Int { get set }

Discussion

Your game does not assign to or read from this property directly. Instead, when you adopt the GKGameModelUpdate protocol, you simply provide a read/write implementation of this property. When you use the GKMinmaxStrategist class to select optimal moves during gameplay, GameplayKit assigns values to this property in order to rate the desirability of each move to a given player.

See Also