Exemplo n.º 1
0
 private Game(IPlayer player, IRenderer renderer, IScoreBoardObserver scoreboard, LabyrinthProcesor processor)
 {
     this.renderer = renderer;
     this.player = player;
     this.scoreBoardHandler = scoreboard;
     this.processor = processor;
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            LabyrinthProcesor processor = new LabyrinthProcesor();

            while (true)
            {
                ShowLabyrinth(processor.Matrix);
                processor.ShowInputMessage();
                String input;

                input = Console.ReadLine();
                processor.HandleInput(input);
            }
        }
Exemplo n.º 3
0
        public static Game Instance(IPlayer player, IRenderer renderer, IScoreBoardObserver scoreboard, LabyrinthProcesor processor)
        {
            if (gameInstance == null)
            {
                lock (syncLock)
                {
                    if (gameInstance == null)
                    {
                        gameInstance = new Game(player, renderer, scoreboard, processor);
                    }
                }
            }

            return gameInstance;
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            LabyrinthProcesor processor = new LabyrinthProcesor();

            while (true)
            {
                ShowLabyrinth(processor.Matrix);
                processor.ShowInputMessage();
                String input;



                input = Console.ReadLine();
                processor.HandleInput(input);
            }
        }