/// <summary> /// Main method /// </summary> public static void Main() { ISettingsProvider settingsProvider = new JsonSettingsProvider(); IInputOutputDevice inputOutputDevice = new ConsoleInputOutputDevice(); IPhraseProvider phraseProvider = new JsonPhraseProvider(); IBoard board = new DashBoard(); IFigureProvider figureProvider = new FigureProvider(); new Game(settingsProvider, inputOutputDevice, phraseProvider, board, figureProvider) { }.Start(); }
/// <summary> /// Main method /// </summary> public static void Main(string[] args) { ISettingsProvider settingsProvider = new JsonSettingsProvider(); GameSettings gameSettings = settingsProvider.GetGameSettings(); IPhraseProvider phraseProvider = new JsonPhraseProvider(gameSettings.Language); IInputOutputDevice inputOutputDevice = new ConsoleInputOutputDevice(); IBoard board = new ConsoleBoard(); IDrawOnBoard drawOnBoard = new DrawOnConsoleBoard(); Game drawingGame = new Game(board, phraseProvider, inputOutputDevice, drawOnBoard, settingsProvider); drawingGame.Run(); Console.ReadKey(); }