static void Main(string[] args) { Interfaces.IDoorsGenerator doorsGenerator = new DoorsNumGenerator(); Interfaces.IInputOutputModule ioModule = new InputOutputModule(); Interfaces.IPhraseProvider phraseProvider = new PhraseProvider(); Interfaces.ISettingsProvider settingsProvider = new SettingsProvider(); Game game = new Game(doorsGenerator, ioModule, phraseProvider, settingsProvider); game.Start(5); }
static void Main(string[] args) { Interfaces.IBoard board = new DashBoard(); Interfaces.IFigures figures = new Figures(); Interfaces.IInputOutputModule ioModule = new InputOutputModule(); Interfaces.IPhraseProvider phraseProvider = new PhraseProvider(); Interfaces.ISettingsProvider settingsProvider = new SettingsProvider(); Game game = new Game(board, figures, ioModule, phraseProvider, settingsProvider); game.Start(); }
private static void Main(string[] args) { IInputReader reader = new InputReader(); IOutputWriter writer = new OutputWriter(); ISettingsProvider settingsProvider = new SettingsProvider(); IPhraseProvider phraseProvider = new PhraseProvider(); GameSettings gameSettings = new GameSettings(); IBoard board = new Board(); GameLogics gameLogics = new GameLogics(reader, writer, settingsProvider, phraseProvider, gameSettings, board); gameLogics.RunGame(); }