summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo/Monkey.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Monkey.java')
-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