Esempio n. 1
0
        private static void generate(Cellule c, Random random)
        {
            c.IsVisited = true;
            List<Cellule> CList = new List<Cellule>();

            c.randomizeNeighbors(random);

            foreach (Cellule cellule in c.getNeighbors())
                if (!cellule.IsVisited)
                {
                    c.addLink(cellule);
                    cellule.addLink(c);

                    generate(cellule, random);
                }
        }