-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
61 lines (36 loc) · 1 KB
/
Main.java
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
59
60
61
import java.util.*;
public class Main{
public static void main(String[] args){
Maze maze = new Maze(160, 160);
Scanner in = new Scanner(System.in);
boolean keepGoing = true;
while(keepGoing){
System.out.println("enter direction(u,d,l,r)");
String resp = in.next();
if(resp.equals("u") || resp.equals("d") || resp.equals("l") || resp.equals("r")){
maze.transverse(resp);
}else{
System.out.println("whats that home dog?");
}
}
/*Node up = new Node();
Node down = new Node();
Node left = new Node();
Node right = new Node();
current.setCoordinates(0,0);
up.setDown(current);
current.setUp(up);
up.setCoordinates(0,1);
down.setUp(current);
current.setDown(down);
down.setCoordinates(0,-1);
left.setRight(current);
current.setLeft(left);
left.setCoordinates(-1,0);
right.setLeft(current);
current.setRight(right);
right.setCoordinates(1,0);
showPlace(current);
*/
}//end main method
}//end Main class def