Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ExplorationHex.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
1 change: 1 addition & 0 deletions ObstacleHex.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0400000800000201c00002000400080010202040408000000000000003f80000000000000200
9 changes: 9 additions & 0 deletions src/algorithms/Direction.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package algorithms;

public enum Direction
{
RIGHT,
LEFT,
UP,
DOWN;
}
30 changes: 30 additions & 0 deletions src/algorithms/ExplorationTypes.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package algorithms;

public enum ExplorationTypes{
EMPTY(0), OBSTACLE(1),UNEXPLORED_EMPTY(2),UNEXPLORED_OBSTACLE(3);

int type_val = 2;
public int getValue()
{
return this.type_val;
}

public static int toInt(String a) {
switch(a) {
case "EMPTY":
return 0;
case "OBSTACLE":
return 1;
case "UNEXPLORED_EMPTY":
return 2;
case "UNEXPLORED_OBSTACLE":
return 3;
}
return -1;
};
// enum constructor - cannot be public or protected
private ExplorationTypes(int type_val)
{
this.type_val = type_val;
}
};
Loading