public string ContinueGame(string inputPromptMessage, string invalidInputMessage) { while (true) { _gameOutput.Output(inputPromptMessage); var playerInput = _gameInput.Input(); if (_inputValidator.IsContinueGameInputValid(playerInput)) { return(playerInput); } _gameOutput.Output(invalidInputMessage); } }
public void Play() { _gameOutput.Output(Messages.Welcome); GenerateGrid(); GenerateSeed(); PlayNextGeneration(); _gameOutput.Output(Messages.GameEnd); }