From 655ac88f4e73b2df532a451aedf5a561ea1b0d2c Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 21 Nov 2015 10:36:18 +0100 Subject: Import project structure --- src/ch/epfl/maze/physical/zoo/SpaceInvader.java | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/ch/epfl/maze/physical/zoo/SpaceInvader.java (limited to 'src/ch/epfl/maze/physical/zoo/SpaceInvader.java') 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 @@ +package ch.epfl.maze.physical.zoo; + +import ch.epfl.maze.physical.Animal; +import ch.epfl.maze.util.Direction; +import ch.epfl.maze.util.Vector2D; + +/** + * Space Invader A.I. that implements an algorithm of your choice. + *
+ * Note that this class is considered as a bonus, meaning that you do not + * have to implement it (see statement: section 6, Extensions libres). + *
+ * If you consider implementing it, you will have bonus points on your grade if + * it can exit a simply-connected maze, plus additional points if it is more + * efficient than the animals you had to implement. + *
+ * The way we measure efficiency is made by the test case {@code Competition}. + * + * @see ch.epfl.maze.tests.Competition Competition + * + */ + +public class SpaceInvader extends Animal { + + /** + * Constructs a space invader with a starting position. + * + * @param position + * Starting position of the mouse in the labyrinth + */ + + public SpaceInvader(Vector2D position) { + super(position); + // TODO (bonus) + } + + /** + * Moves according to (... please complete with as many details as you can). + */ + + @Override + public Direction move(Direction[] choices) { + // TODO (bonus) + return Direction.NONE; + } + + @Override + public Animal copy() { + // TODO (bonus) + return null; + } +} -- cgit v1.2.3