示例#1
0
 public DibujarLaberinto(PictureBox pb, int seed = 0)
 {
     _pb       = pb;
     Cuadrilla = new Cuadrilla(Horizontales, Verticales);
     if (seed == 0)
     {
         seed = (int)DateTime.Now.Ticks;
     }
     Seed = seed;
     Cuadrilla.Randomize(seed);
 }
示例#2
0
 public void Reset()
 {
     Cuadrilla.Randomize(Seed);
 }