Example #1
0
 private void doSearch()
 {
     for (int i = 0; i < max; i++)
     {
         a.addBlocked(5, i);
     }
     ADS.Grid.Generation.New.Node startnode = grid.getGrid[random.Next(1, max), random.Next(1, max)];
     ADS.Grid.Generation.New.Node endnode   = grid.getGrid[random.Next(1, max), random.Next(1, max)];
     if (startnode.Blocked || endnode.Blocked)
     {
         doSearch();
     }
     else
     {
         grid.resetVisual();
         grid.path = null;
         search1.CommitPathSearch(grid, startnode, endnode);
     }
 }