Interface GKStrategist

    • 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.