summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/tests/GhostsTest.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-24 15:03:04 +0100
committerPacien TRAN-GIRARD2015-11-24 15:08:29 +0100
commitbda6db0eb45b4fb10d9644d9b7bf2699e17a0e5d (patch)
tree3b362344ad734a1542d1a07348bd7463ebcbb28e /src/ch/epfl/maze/tests/GhostsTest.java
parent15ae5683367df9f32df301cfc66dcbe41d193208 (diff)
downloadmaze-solver-bda6db0eb45b4fb10d9644d9b7bf2699e17a0e5d.tar.gz
Keep method compatibility for tests
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 }