Example #1
0
 public GameEngine(IRandomColourGenerator randomColourGenerator, IInputHandler inputHandler, IDisplay display)
 {
     _randomColourGenerator = randomColourGenerator;
     _inputHandler          = inputHandler;
     _display           = display;
     _colourMatchResult = new ColourMatchResult();
     _turnCountTracker  = new TurnCountTracker(Constants.MaxTries);
     _winnerChecker     = new WinnerChecker(Constants.MasterColoursCount);
 }