summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-23 21:26:33 +0100
committerPacien TRAN-GIRARD2015-11-23 21:26:33 +0100
commit903553fe9e03e4af75eb7f8547e08b480bc58ec4 (patch)
treeb3ba1eb8f87cfba4db67a44a641abcf5cc5f2e44 /src/ch/epfl/maze/physical/zoo
parent7e7e2c2f5a2261dcb3c4035e42236a099fefc343 (diff)
downloadmaze-solver-903553fe9e03e4af75eb7f8547e08b480bc58ec4.tar.gz
Fix Monkey erroneous behaviour
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo')
-rw-r--r--src/ch/epfl/maze/physical/zoo/Monkey.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Monkey.java b/src/ch/epfl/maze/physical/zoo/Monkey.java
index a29b7d4..7bcf090 100644
--- a/src/ch/epfl/maze/physical/zoo/Monkey.java
+++ b/src/ch/epfl/maze/physical/zoo/Monkey.java
@@ -54,7 +54,6 @@ public class Monkey extends Animal {
54 if (choices.length == 0) return Direction.NONE; 54 if (choices.length == 0) return Direction.NONE;
55 if (this.currentDirection == Direction.NONE) return choices[0]; 55 if (this.currentDirection == Direction.NONE) return choices[0];
56 if (choices.length == 1) return choices[0]; 56 if (choices.length == 1) return choices[0];
57 if (choices.length > 3) return choices[0];
58 return this.followLeft(choices); 57 return this.followLeft(choices);
59 } 58 }
60 59