Пример #1
0
        /// <summary> Called the first round (might be second round game wise) this agents is able to see the game and his opponent. </summary>
        private void CustomInit(POGame.POGame initialState)
        {
            _hasInitialized = true;

            _playerId             = initialState.CurrentPlayer.PlayerId;
            _analyzer.OwnPlayerId = _playerId;

            if (_heroBasedWeights)
            {
                _analyzer.Weights = TyStateWeights.GetHeroBased(initialState.CurrentPlayer.HeroClass, initialState.CurrentOpponent.HeroClass);
            }
        }