summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo/SpaceInvader.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-21 10:36:18 +0100
committerPacien TRAN-GIRARD2015-11-21 10:36:18 +0100
commit655ac88f4e73b2df532a451aedf5a561ea1b0d2c (patch)
treeef6f914a465575f313e2b280bf0639d87a4cbd58 /src/ch/epfl/maze/physical/zoo/SpaceInvader.java
parent56279eb59ccdea48b18daa027a5095d861b4e2f4 (diff)
downloadmaze-solver-655ac88f4e73b2df532a451aedf5a561ea1b0d2c.tar.gz
Import project structure
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/SpaceInvader.java')
-rw-r--r--src/ch/epfl/maze/physical/zoo/SpaceInvader.java52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/SpaceInvader.java b/src/ch/epfl/maze/physical/zoo/SpaceInvader.java
new file mode 100644
index 0000000..0d8fb5d
--- /dev/null
+++ b/src/ch/epfl/maze/physical/zoo/SpaceInvader.java
@@ -0,0 +1,52 @@
1package ch.epfl.maze.physical.zoo;
2
3import ch.epfl.maze.physical.Animal;
4import ch.epfl.maze.util.Direction;
5import ch.epfl.maze.util.Vector2D;
6
7/**
8 * Space Invader A.I. that implements an algorithm of your choice.
9 * <p>
10 * Note that this class is considered as a <i>bonus</i>, meaning that you do not
11 * have to implement it (see statement: section 6, Extensions libres).
12 * <p>
13 * If you consider implementing it, you will have bonus points on your grade if
14 * it can exit a simply-connected maze, plus additional points if it is more
15 * efficient than the animals you had to implement.
16 * <p>
17 * The way we measure efficiency is made by the test case {@code Competition}.
18 *
19 * @see ch.epfl.maze.tests.Competition Competition
20 *
21 */
22
23public class SpaceInvader extends Animal {
24
25 /**
26 * Constructs a space invader with a starting position.
27 *
28 * @param position
29 * Starting position of the mouse in the labyrinth
30 */
31
32 public SpaceInvader(Vector2D position) {
33 super(position);
34 // TODO (bonus)
35 }
36
37 /**
38 * Moves according to (... please complete with as many details as you can).
39 */
40
41 @Override
42 public Direction move(Direction[] choices) {
43 // TODO (bonus)
44 return Direction.NONE;
45 }
46
47 @Override
48 public Animal copy() {
49 // TODO (bonus)
50 return null;
51 }
52}