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