public AbstractTicTacToeState(ILearningModule learningModule) :
            base(learningModule)
        {
            object genericChar = this.LearningModule.Bot[TttSettings.TTT_CHAR];

            if (genericChar == null)
            {
                throw new NullReferenceException("Unknown AutoBot's char.");
            }

            this.TttChar = genericChar.ToString();
            if (this.TttChar == null)
            {
                throw new IndexOutOfRangeException($"Player char should be stored in AutoBot with key equals. \"{ TttSettings.TTT_CHAR }\"");
            }
        }
 public MakingMoveState(ILearningModule learningModule) :
     base(learningModule)
 {
 }
Exemple #3
0
 public AbstractState(ILearningModule learningModule)
 {
     this.LearningModule = learningModule;
 }
Exemple #4
0
 public WaitingState(ILearningModule learningModule) :
     base(learningModule)
 {
 }