Exemple #1
0
        public GameController()
        {
            OutputView.PrintWelcomeMessage();
            InputView.PrintGameStart();

            Console.ReadLine();

            PlayGame();
        }
Exemple #2
0
 public MainController()
 {
     _outputView = new OutputView();
     _outputView.PrintWelcomeMessage();
     _inputView        = new InputView();
     _parser           = new Parser();
     _outputView.Print = _parser.BuildMaze();
     _route            = _parser.Route;
     mainThread        = new Thread(new ThreadStart(Run));
     mainThread.Start();
     SwitchInput();
     mainThread.Interrupt();
     _outputView.WriteEndGameMessage(_route.Score);
     Console.ReadLine();
 }