Edit

Share via


IGKGameModelUpdate.Value Property

Definition

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

System.System.IntPtr System.nativeint
Attributes

Remarks

This property is determined by the GetScore(IGKGameModel, IGKGameModelPlayer) when thisIGKGameModelUpdate 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.

Applies to