public static void Start() { IRenderer renderer = new ConsoleRenderer(); //renderer.RenderMainMenu(); IInputProvider inputProvider = new ConsoleInputProvider(); IChessEngine chessEngine = new TwoPlayerEngine(renderer, inputProvider); IGameInitializationStrategy gameInitializationStrategy = new StandartStartGameInitializationStrategy(); chessEngine.Initialize(gameInitializationStrategy); chessEngine.Start(); Console.ReadLine(); }
public static void Start() { //Създавам кой ми принтира IRenderer renderer = new ConsoleRenderer(); //Извиквам мейн меню //renderer.RenderMenu(); //Създавам кой ще ми чете данните за шаха IInputProvider inputProvider = new ConsoleInputProvider(); //създавам енджина IEngine engine = new TwoPlayerEngine(renderer, inputProvider); //създавам как да инициализирам самата игра IGameInitialization gameInitialization = new StandartStartGameInitialization(); engine.Initialize(gameInitialization); engine.Start(); Console.ReadLine(); }