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.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ch/epfl/maze/tests/GhostsTest.java b/src/ch/epfl/maze/tests/GhostsTest.java
index 2195443..c6970b1 100644
--- a/src/ch/epfl/maze/tests/GhostsTest.java
+++ b/src/ch/epfl/maze/tests/GhostsTest.java
@@ -16,6 +16,8 @@ import ch.epfl.maze.util.Vector2D;
16import junit.framework.TestCase; 16import junit.framework.TestCase;
17import org.junit.Test; 17import org.junit.Test;
18 18
19import java.util.Set;
20
19/** 21/**
20 * Test suite for ghosts implementation. 22 * Test suite for ghosts implementation.
21 * 23 *
@@ -126,7 +128,7 @@ public class GhostsTest extends TestCase {
126 } 128 }
127 129
128 @Override 130 @Override
129 public Direction move(Direction[] choices, Daedalus daedalus) { 131 public Direction move(Set<Direction> choices, Daedalus daedalus) {
130 if (mMoves) { 132 if (mMoves) {
131 return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT; 133 return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT;
132 } 134 }