private void InitializeMasterMindGameComponent() { ResourceManagerHelper.Init(); _gameTurn = new MasterMindGameTurn(); _guessedNumberInfo = new string[_gameTurn.NumberLength]; InitHintZone(); InitTextBoxInputCodeBreak(_gameTurn.NumberLength); InitButtonBreakCode(); InitLabelShowGuessResult(); }
public void Exit(MasterMindGameTurn gameTurn) { return; }
public void Excute(MasterMindGameTurn gameTurn) { gameTurn.IsGameOver = true; gameTurn.IsGameFail = gameTurn.IsOverMaxTries || ((gameTurn.CurrentTries == gameTurn.MaxTries) && !gameTurn.IsGuessAllTheNumber); }
public void Enter(MasterMindGameTurn gameTurn) { _logger.Debug("This game is over"); }