diff options
author | Pacien TRAN-GIRARD | 2015-11-23 21:26:33 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-11-23 21:26:33 +0100 |
commit | 903553fe9e03e4af75eb7f8547e08b480bc58ec4 (patch) | |
tree | b3ba1eb8f87cfba4db67a44a641abcf5cc5f2e44 /src/ch/epfl/maze | |
parent | 7e7e2c2f5a2261dcb3c4035e42236a099fefc343 (diff) | |
download | maze-solver-903553fe9e03e4af75eb7f8547e08b480bc58ec4.tar.gz |
Fix Monkey erroneous behaviour
Diffstat (limited to 'src/ch/epfl/maze')
-rw-r--r-- | src/ch/epfl/maze/physical/zoo/Monkey.java | 1 |
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 | ||