GKMinMaxStrategist.GetRandomMove(IGKGameModelPlayer, nint) Method
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.
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
- player
- IGKGameModelPlayer
- numMovesToConsider
- System.System.IntPtr System.nativeint
Returns
- Attributes
Remarks
If RandomSource is null
, this method returns the same move as GetBestMove(IGKGameModelPlayer).