Skip to content

Commit e2bc750

Browse files
committed
imgs
1 parent 46449ed commit e2bc750

11 files changed

+3
-6
lines changed

.vs/PathAlgorithms/v16/.suo

21.5 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Form1.cs

+3-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ private void CloseButton_Click(object sender, EventArgs e)
2929
{
3030
this.Close();
3131
}
32-
3332

3433
void prepareBoard()
3534
{
@@ -86,7 +85,6 @@ Tuple<List<int>,List<int>> BuildWalls()
8685
{
8786
if (board[i, j].Style.BackColor == Color.Red)
8887
{
89-
// [DEBUG] MessageBox.Show(i.ToString() + " : " + j.ToString());
9088
xWalls.Add(i);
9189
yWalls.Add(j);
9290
}
@@ -111,7 +109,7 @@ void ColorTheBoard(List<Tuple<int, int>> path, bool clr)
111109
int iterator = 0;
112110
foreach (Tuple<int, int> x in path)
113111
{
114-
wait(1);
112+
wait(70);
115113
int xx = x.Item1;
116114
int yy = x.Item2;
117115
if (clr == true)
@@ -183,15 +181,14 @@ private void RunDFS_Click(object sender, EventArgs e)
183181
List<int> yWalls = new List<int>();
184182

185183
Tuple<List<int>, List<int>> walls = BuildWalls(); // calls the BuildWalls method
186-
184+
187185
xWalls = walls.Item1;
188186
yWalls = walls.Item2;
189187
// (sX,Sy,eX,eY, row,col)
190188
DFS dfs = new DFS(startX, startY, endX, endY, 19, 20, xWalls, yWalls); // create DFS object
191189

192190
List<Tuple<int, int>> path = dfs.get_DFS_path(); // run DFS get the cells traversed in BFS order
193-
//MessageBox.Show(path.Count.ToString());
194-
191+
195192
ColorTheBoard(path,false); // colors the board
196193
}
197194

bin/Debug/PathAlgorithms.exe

0 Bytes
Binary file not shown.

bin/Debug/PathAlgorithms.pdb

0 Bytes
Binary file not shown.
File renamed without changes.
Binary file not shown.

obj/Debug/PathAlgorithms.exe

0 Bytes
Binary file not shown.

obj/Debug/PathAlgorithms.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)