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 @Nullable GKGameModelUpdatebestMoveForActivePlayer()@Nullable GKGameModelgameModel()The game model that we wish to select updates for.@Nullable 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(@Nullable GKGameModel value)The game model that we wish to select updates for.voidsetRandomSource(@Nullable 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
@Nullable @Nullable GKGameModelUpdate bestMoveForActivePlayer()
-
gameModel
@Nullable @Nullable GKGameModel gameModel()
The game model that we wish to select updates for.
-
randomSource
@Nullable @Nullable 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(@Nullable @Nullable GKGameModel value)The game model that we wish to select updates for.
-
setRandomSource
void setRandomSource(@Nullable @Nullable 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.
-
-