diff options
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Hamster.java')
-rw-r--r-- | src/ch/epfl/maze/physical/zoo/Hamster.java | 43 |
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 @@ | |||
1 | package ch.epfl.maze.physical.zoo; | ||
2 | |||
3 | import ch.epfl.maze.physical.Animal; | ||
4 | import ch.epfl.maze.util.Direction; | ||
5 | import 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 | |||
13 | public 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 | } | ||