public GameFlowFacade( IUpdateBoardView boardViewUpdater, Func <IHandlePlayerInteraction> gameStateFactoryMethod) { _boardViewUpdater = boardViewUpdater; _gameStateFactoryMethod = gameStateFactoryMethod; _interactionHandler = _gameStateFactoryMethod(); }
public void GenerateNewGame() { _interactionHandler = _gameStateFactoryMethod(); _boardViewUpdater.ResetGame(); _currentOutcome = GameActionOutcome.Error; }