-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
58 lines (33 loc) · 755 Bytes
/
Program.cs
File metadata and controls
58 lines (33 loc) · 755 Bytes
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
52
53
54
55
56
57
58
using Robot_Navigation_2022;
Console.WriteLine("Please type in the filepath: ");
string filepath = Console.ReadLine();
Map Map = new Map(filepath);
Map.CleanInputs();
Map.GetInput();
Robot r = new Robot(Map.M, Map.N, Map.Goals, Map.start, Map.Walls);
Console.WriteLine("What algorithm do you want to use: ");
string read = Console.ReadLine();
if (read == "DFS")
{
r.ProblemSolvingAgent(0);
}
if (read == "BFS")
{
r.ProblemSolvingAgent(1);
}
if (read == "UNIFORM")
{
r.ProblemSolvingAgent(2);
}
if (read == "BEST")
{
r.ProblemSolvingAgent(3);
}
if (read == "GBFS")
{
r.ProblemSolvingAgent(4);
}
if (read == "ASTAR")
{
r.ProblemSolvingAgent(5);
}