Esempio n. 1
0
        public static void Main(string[] args)
        {
            PRandLSystem              system       = new PRandLSystem("conf/lsys.json");
            HighLevelRoom             head         = new HighLevelRoom();
            HighLevelRoomConfigurator configurator = new HighLevelRoomConfigurator();

            for (int i = 0; i < 40; i++)
            {
                WriteLevelToConsole();
                Console.WriteLine("\n===================================\n");

                system.ProcessSystem();

                foreach (GridPos pos in new List <GridPos>(HighLevelRoom.HighLevelLocDict.Keys))
                {
                    configurator.Configure(HighLevelRoom.HighLevelLocDict[pos], HighLevelRoom.HighLevelLocDict[pos].Type);
                }
            }

            WriteLevelToConsole();

            Console.Read();
        }
        public static void Main(string[] args)
        {
            PRandLSystem system = new PRandLSystem("conf/lsys.json");
            HighLevelRoom head = new HighLevelRoom();
            HighLevelRoomConfigurator configurator = new HighLevelRoomConfigurator();

            for (int i = 0; i < 40; i++)
            {

                WriteLevelToConsole();
                Console.WriteLine("\n===================================\n");

                system.ProcessSystem();

                foreach (GridPos pos in new List<GridPos>(HighLevelRoom.HighLevelLocDict.Keys))
                {
                    configurator.Configure(HighLevelRoom.HighLevelLocDict[pos], HighLevelRoom.HighLevelLocDict[pos].Type);
                }
            }

            WriteLevelToConsole();

            Console.Read();
        }