Skip to content

Commit

Permalink
Merge pull request #52 from MikePT28/local
Browse files Browse the repository at this point in the history
Added missing prev ids to getNeighbors()
  • Loading branch information
filiphsps authored Jul 22, 2016
2 parents cbdddfa + e382341 commit e8889a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ private ArrayList<Integer> getNeighbors() {

for (int i = 1; i <= 10; i++) {
Integer next = origin + i;
Integer prev = origin - i;
walk.add(next);
walk.add(prev);
}

Collections.sort(walk);
Expand Down

0 comments on commit e8889a9

Please sign in to comment.