Düzenle

Aracılığıyla paylaş


GKMinMaxStrategist.GetRandomMove(IGKGameModelPlayer, nint) Method

Definition

Returns a random move among the numMovesToConsider best moves.

[Foundation.Export("randomMoveForPlayer:fromNumberOfBestMoves:")]
public virtual GameplayKit.IGKGameModelUpdate GetRandomMove (GameplayKit.IGKGameModelPlayer player, nint numMovesToConsider);
abstract member GetRandomMove : GameplayKit.IGKGameModelPlayer * nint -> GameplayKit.IGKGameModelUpdate
override this.GetRandomMove : GameplayKit.IGKGameModelPlayer * nint -> GameplayKit.IGKGameModelUpdate

Parameters

numMovesToConsider
System.System.IntPtr System.nativeint

Returns

Attributes

Remarks

If RandomSource is null, this method returns the same move as GetBestMove(IGKGameModelPlayer).

Applies to