summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/tests/GhostsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/tests/GhostsTest.java')
-rw-r--r--src/ch/epfl/maze/tests/GhostsTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/maze/tests/GhostsTest.java b/src/ch/epfl/maze/tests/GhostsTest.java
index c6970b1..35dddbf 100644
--- a/src/ch/epfl/maze/tests/GhostsTest.java
+++ b/src/ch/epfl/maze/tests/GhostsTest.java
@@ -128,7 +128,7 @@ public class GhostsTest extends TestCase {
128 } 128 }
129 129
130 @Override 130 @Override
131 public Direction move(Set<Direction> choices, Daedalus daedalus) { 131 public Direction move(Direction[] choices, Daedalus daedalus) {
132 if (mMoves) { 132 if (mMoves) {
133 return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT; 133 return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT;
134 } 134 }