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/Hamster.java | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/ch/epfl/maze/physical/zoo/Hamster.java (limited to 'src/ch/epfl/maze/physical/zoo/Hamster.java') diff --git a/src/ch/epfl/maze/physical/zoo/Hamster.java b/src/ch/epfl/maze/physical/zoo/Hamster.java new file mode 100644 index 0000000..a000daf --- /dev/null +++ b/src/ch/epfl/maze/physical/zoo/Hamster.java @@ -0,0 +1,43 @@ +package ch.epfl.maze.physical.zoo; + +import ch.epfl.maze.physical.Animal; +import ch.epfl.maze.util.Direction; +import ch.epfl.maze.util.Vector2D; + +/** + * Hamster A.I. that remembers the previous choice it has made and the dead ends + * it has already met. + * + */ + +public class Hamster extends Animal { + + /** + * Constructs a hamster with a starting position. + * + * @param position + * Starting position of the hamster in the labyrinth + */ + + public Hamster(Vector2D position) { + super(position); + // TODO + } + + /** + * Moves without retracing directly its steps and by avoiding the dead-ends + * it learns during its journey. + */ + + @Override + public Direction move(Direction[] choices) { + // TODO + return Direction.NONE; + } + + @Override + public Animal copy() { + // TODO + return null; + } +} -- cgit v1.2.3