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) { }
public AbstractState(ILearningModule learningModule) { this.LearningModule = learningModule; }
public WaitingState(ILearningModule learningModule) : base(learningModule) { }