From 903553fe9e03e4af75eb7f8547e08b480bc58ec4 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 23 Nov 2015 21:26:33 +0100 Subject: Fix Monkey erroneous behaviour --- src/ch/epfl/maze/physical/zoo/Monkey.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ch/epfl/maze/physical/zoo/Monkey.java') 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 { if (choices.length == 0) return Direction.NONE; if (this.currentDirection == Direction.NONE) return choices[0]; if (choices.length == 1) return choices[0]; - if (choices.length > 3) return choices[0]; return this.followLeft(choices); } -- cgit v1.2.3