One Logo Pool Ball
GameplayKit · IOS API REFERENCE

GKMinmaxStrategist

class · iOS 9.0+ · SDK 27.1

class GKMinmaxStrategist

Members (5)

method · iOS 9.0+

bestMove

TypeScript
bestMove(player: SDKHandle): (SDKHandle) | null
Swift declaration
func bestMove(for player: any GKGameModelPlayer) -> (any GKGameModelUpdate)?
init

init

TypeScript
static init(): GKMinmaxStrategist
Swift declaration
init()
method · iOS 9.0+

randomMove

TypeScript
randomMove(player: SDKHandle, numMovesToConsider: number): (SDKHandle) | null
Swift declaration
func randomMove(for player: any GKGameModelPlayer, fromNumberOfBestMoves numMovesToConsider: Int) -> (any GKGameModelUpdate)?
get · iOS 9.0+

maxLookAheadDepth

TypeScript
get maxLookAheadDepth(): number
Swift declaration
var maxLookAheadDepth: Int { get set }
set · iOS 9.0+

maxLookAheadDepth

TypeScript
set maxLookAheadDepth(value: number)
Swift declaration
var maxLookAheadDepth: Int { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All GameplayKit types →