Share via


IGKGameModelUpdate.Value Property

Definition

Equivalent to the value produced by GetScore(IGKGameModel, IGKGameModelPlayer).

[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr Value { [Foundation.Export("value", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] get; [Foundation.Export("setValue:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] set; }
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("value", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)>]
[<set: Foundation.Export("setValue:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)>]
member this.Value : nativeint with get, set

Property Value

IntPtr

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 RandomSource is not null, the returned IGKGameModelUpdate is chosen randomly among those with the highest Value.

Applies to