Fix indexes confusion
This commit is contained in:
1 parent
d9b52c35e2
commit
213071d3c2
4 files changed
+69
-48
No files matched your search
+1
-1
@@ -24,7 +24,7 @@ public abstract class Box
|
||||
private Maze maze ;
|
||||
private ArrayList<Box> neighbourList = new ArrayList<Box>() ;
|
||||
|
||||
public Box (String label, int x, int y, Maze maze) {
|
||||
public Box (String label, int y , int x, Maze maze) { //y first because of graphical maze representation
|
||||
|
||||
this.label = label ;
|
||||
this.x = x ;
|
||||
|
||||
Reference in new issue
Block a user