summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo/SpaceInvader.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-24 14:28:26 +0100
committerPacien TRAN-GIRARD2015-11-24 14:28:26 +0100
commite2354d82e09c3bf8ae472d174332670d2d12f9bb (patch)
tree92528b9231178fd47c6910163360413d4ae77256 /src/ch/epfl/maze/physical/zoo/SpaceInvader.java
parent5f9be99e7ebd4a90e666e6efbe9e9d4b3b8008e7 (diff)
downloadmaze-solver-e2354d82e09c3bf8ae472d174332670d2d12f9bb.tar.gz
Use Set instead of array for Direction choices
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/SpaceInvader.java')
-rw-r--r--src/ch/epfl/maze/physical/zoo/SpaceInvader.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/SpaceInvader.java b/src/ch/epfl/maze/physical/zoo/SpaceInvader.java
index 3fd0513..7a3860e 100644
--- a/src/ch/epfl/maze/physical/zoo/SpaceInvader.java
+++ b/src/ch/epfl/maze/physical/zoo/SpaceInvader.java
@@ -4,6 +4,8 @@ import ch.epfl.maze.physical.Animal;
4import ch.epfl.maze.util.Direction; 4import ch.epfl.maze.util.Direction;
5import ch.epfl.maze.util.Vector2D; 5import ch.epfl.maze.util.Vector2D;
6 6
7import java.util.Set;
8
7/** 9/**
8 * Space Invader A.I. that implements an algorithm of your choice. 10 * Space Invader A.I. that implements an algorithm of your choice.
9 * <p> 11 * <p>
@@ -16,8 +18,8 @@ import ch.epfl.maze.util.Vector2D;
16 * <p> 18 * <p>
17 * The way we measure efficiency is made by the test case {@code Competition}. 19 * The way we measure efficiency is made by the test case {@code Competition}.
18 * 20 *
19 * @see ch.epfl.maze.tests.Competition Competition
20 * @author EPFL 21 * @author EPFL
22 * @see ch.epfl.maze.tests.Competition Competition
21 */ 23 */
22public class SpaceInvader extends Animal { 24public class SpaceInvader extends Animal {
23 25
@@ -35,7 +37,7 @@ public class SpaceInvader extends Animal {
35 * Moves according to (... please complete with as many details as you can). 37 * Moves according to (... please complete with as many details as you can).
36 */ 38 */
37 @Override 39 @Override
38 public Direction move(Direction[] choices) { 40 public Direction move(Set<Direction> choices) {
39 // TODO (bonus) 41 // TODO (bonus)
40 return Direction.NONE; 42 return Direction.NONE;
41 } 43 }