-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStart.cs
51 lines (45 loc) · 1.38 KB
/
Start.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
namespace PathFinding
{
class Mainclass {
private static void RunTest()
{
Console.WriteLine("[Test]");
var TestMaze = new TestMaze();
try
{
TestMaze.TestMoveUp();
TestMaze.TestMoveDown();
TestMaze.TestMoveRight();
TestMaze.TestMoveLeft();
TestMaze.
TestPathFinding();
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
private static void FindPath()
{
var Maze = new Maze();
Maze.PrintingMaze();
int [] Goal= {1,1};
int [] start = {1,1};
Maze.Adress(3, start);
Maze.Adress(4, Goal);
// Console.WriteLine(Goal[0],Goal[1]);
// Console.WriteLine(start[0], start[1]);
Console.WriteLine("\n"+"goal Y," + "" + Goal[0] + ",goal X," + "" +Goal[1] + "");
Console.WriteLine("start Y," + ""+ start[0]+ ""+ ",start X" + "" + start[1] + "");
// Maze.findingPath(start , Goal);
Maze.PrintingMaze();
Console.ReadKey();
}
public static void Main(string[] args) {
// FindPath();
RunTest();
Console.ReadKey();
}
}
}