/// <summary> /// Initializes a new instance of the <see cref="GameEngine" /> class. /// </summary> /// <param name="renderer">The game renderer.</param> /// <param name="inputMethod">The user input method.</param> public GameEngine(IRenderer renderer, IInputMethod inputMethod) { this.gameRenderer = renderer; this.inputMethod = inputMethod; this.scores = new HighScores(MaxTopPlayers); this.cmdExecutor = new DefaultGameCommandExecutor(this.gameRenderer, this.inputMethod, this.scores); }