diff options
author | Pacien TRAN-GIRARD | 2015-11-24 12:56:50 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-11-24 12:56:50 +0100 |
commit | 5f9be99e7ebd4a90e666e6efbe9e9d4b3b8008e7 (patch) | |
tree | f551b9193ef29660bacf1c0f25707bbd407f9200 /src/ch/epfl/maze/physical/zoo | |
parent | fb492341a1d05590c5230e8e0bd5e48f530944fe (diff) | |
download | maze-solver-5f9be99e7ebd4a90e666e6efbe9e9d4b3b8008e7.tar.gz |
Move directional attribute to Animal
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo')
-rw-r--r-- | src/ch/epfl/maze/physical/zoo/Panda.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Panda.java b/src/ch/epfl/maze/physical/zoo/Panda.java index b794d10..ce38fda 100644 --- a/src/ch/epfl/maze/physical/zoo/Panda.java +++ b/src/ch/epfl/maze/physical/zoo/Panda.java | |||
@@ -88,7 +88,7 @@ public class Panda extends ProbabilisticAnimal { | |||
88 | private Direction[] selectBestDirections(Direction[] choices) { | 88 | private Direction[] selectBestDirections(Direction[] choices) { |
89 | // special case | 89 | // special case |
90 | if (this.isIntersection(choices) && this.allChoicesLeadingTo(choices, Trail.Marking.AVOID_MARKING)) | 90 | if (this.isIntersection(choices) && this.allChoicesLeadingTo(choices, Trail.Marking.AVOID_MARKING)) |
91 | return new Direction[]{this.getCurrentDirection().reverse()}; | 91 | return new Direction[]{this.getDirection().reverse()}; |
92 | 92 | ||
93 | // general case | 93 | // general case |
94 | for (Trail.Marking mark : Trail.Marking.ALL) { | 94 | for (Trail.Marking mark : Trail.Marking.ALL) { |