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; } }