summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo/Hamster.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/Hamster.java
parent56279eb59ccdea48b18daa027a5095d861b4e2f4 (diff)
downloadmaze-solver-655ac88f4e73b2df532a451aedf5a561ea1b0d2c.tar.gz
Import project structure
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Hamster.java')
-rw-r--r--src/ch/epfl/maze/physical/zoo/Hamster.java43
1 files changed, 43 insertions, 0 deletions
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 @@
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 * Hamster A.I. that remembers the previous choice it has made and the dead ends
9 * it has already met.
10 *
11 */
12
13public class Hamster extends Animal {
14
15 /**
16 * Constructs a hamster with a starting position.
17 *
18 * @param position
19 * Starting position of the hamster in the labyrinth
20 */
21
22 public Hamster(Vector2D position) {
23 super(position);
24 // TODO
25 }
26
27 /**
28 * Moves without retracing directly its steps and by avoiding the dead-ends
29 * it learns during its journey.
30 */
31
32 @Override
33 public Direction move(Direction[] choices) {
34 // TODO
35 return Direction.NONE;
36 }
37
38 @Override
39 public Animal copy() {
40 // TODO
41 return null;
42 }
43}