static void Main()
        {
            Ladder ladder = new Ladder();
            Random rand = new Random();
            while (1 == 1)
            {

                Game game = new Game(rand, ladder);
            }
        }
Exemple #2
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;
        }