Added Pi class. Modified Dijsktra and fixed Maze class.
This commit is contained in:
1 parent
acab098ea1
commit
3b674f6049
3 files changed
+23
-1
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ public class Maze
|
||||
Box endBox = (Box) end ;
|
||||
|
||||
if (startBox.getNeighbourList().contains(endBox)) {
|
||||
if (startBox.isWalkable() & endBox.isWalkable()) {
|
||||
if (startBox.isWalkable() && endBox.isWalkable()) {
|
||||
return 1 ;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user