IGKGameModelUpdate.Value Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Equivalent to the value produced by GetScore(IGKGameModel, IGKGameModelPlayer).
[Foundation.Preserve(Conditional=true)]
public nint Value { [Foundation.Export("value", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] get; [Foundation.Export("setValue:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] set; }
member this.Value : nint with get, set
Property Value
- Attributes
Remarks
This property is determined by the GetScore(IGKGameModel, IGKGameModelPlayer) when this
IGKGameModelUpdate is applied to the game state of the IGKGameModel. Ultimately, the GetBestMove(IGKGameModelPlayer) method returns the IGKGameModelUpdate with the highest Value. If multiple IGKGameModelUpdate have the same Value and P:GameplayKit.GKMinMaxStrategist.Random is not null
, the returned IGKGameModelUpdate is chosen randomly among those with the highest Value.