Exemple #1
0
        public override Move PredictOpponentsNextMove(MoveHistory moveHistory)
        {
            this.LogOpponentsPreviousMove(moveHistory.GetOpponentsPreviousMove());

            var random = _randomNumber.Next(0, _moves.Count - 1);
            CurrentPrediction = _moves[random];
            return CurrentPrediction;
        }
Exemple #2
0
        public override Move PredictOpponentsNextMove(MoveHistory moveHistory)
        {
            if (!EnoughHistoryToPredictMove(moveHistory.GetMyHistory()))
                return null;

            LogOpponentsPreviousMove(moveHistory.GetOpponentsPreviousMove());

            SetMatched(moveHistory.GetMyHistory());
            CurrentPrediction = GetMatchedWithHightesWeight().Consequent;
            return CurrentPrediction;
        }