Пример #1
0
 public void Play()
 {
     while (!CheckIfWon())
     {
         _inputView.MakeAMove();
         _outputView.StandardScreen(FirstField, parser.levelWidth, parser.levelHeight);
     }
     _outputView.PlayerHasWonScreen();
     StartOver();
     _outputView.StartMessage();
     _inputView.ChooseMaze();
 }
Пример #2
0
 public Game()
 {
     DesFieldCounter = 0;
     WinCounter      = 0;
     Player          = new Player();
     Employee        = new Employee();
     parser          = new Parser();
     _outputView     = new OutputView();
     _inputView      = new InputView(this);
     _outputView.StartMessage();
     Level = _inputView.ChooseMaze();
     parser.CreateMaze(Level, Player, this, Employee);
     FirstField = parser.firstField2;
     Play();
 }