Package apple.gameplaykit.protocol
Interface GKStrategist
-
- All Known Implementing Classes:
GKMinmaxStrategist,GKMonteCarloStrategist
public interface GKStrategist
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GKGameModelUpdatebestMoveForActivePlayer()GKGameModelgameModel()The game model that we wish to select updates for.GKRandomrandomSource()A random source to use when breaking ties between equally-strong moves when calling bestMoveForPlayer or when selecting a random move when randomMoveForPlayer is called.voidsetGameModel(GKGameModel value)The game model that we wish to select updates for.voidsetRandomSource(GKRandom value)A random source to use when breaking ties between equally-strong moves when calling bestMoveForPlayer or when selecting a random move when randomMoveForPlayer is called.
-
-
-
Method Detail
-
bestMoveForActivePlayer
GKGameModelUpdate bestMoveForActivePlayer()
-
gameModel
GKGameModel gameModel()
The game model that we wish to select updates for.
-
randomSource
GKRandom randomSource()
A random source to use when breaking ties between equally-strong moves when calling bestMoveForPlayer or when selecting a random move when randomMoveForPlayer is called. If set to nil, bestMoveForPlayer and randomMoveForPlayer will simply return the first best move available.
-
setGameModel
void setGameModel(GKGameModel value)
The game model that we wish to select updates for.
-
setRandomSource
void setRandomSource(GKRandom value)
A random source to use when breaking ties between equally-strong moves when calling bestMoveForPlayer or when selecting a random move when randomMoveForPlayer is called. If set to nil, bestMoveForPlayer and randomMoveForPlayer will simply return the first best move available.
-
-