diff options
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Monkey.java')
-rw-r--r-- | src/ch/epfl/maze/physical/zoo/Monkey.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Monkey.java b/src/ch/epfl/maze/physical/zoo/Monkey.java new file mode 100644 index 0000000..a9295b8 --- /dev/null +++ b/src/ch/epfl/maze/physical/zoo/Monkey.java | |||
@@ -0,0 +1,41 @@ | |||
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 | * Monkey A.I. that puts its hand on the left wall and follows it. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | public class Monkey extends Animal { | ||
13 | |||
14 | /** | ||
15 | * Constructs a monkey with a starting position. | ||
16 | * | ||
17 | * @param position | ||
18 | * Starting position of the monkey in the labyrinth | ||
19 | */ | ||
20 | |||
21 | public Monkey(Vector2D position) { | ||
22 | super(position); | ||
23 | // TODO | ||
24 | } | ||
25 | |||
26 | /** | ||
27 | * Moves according to the relative left wall that the monkey has to follow. | ||
28 | */ | ||
29 | |||
30 | @Override | ||
31 | public Direction move(Direction[] choices) { | ||
32 | // TODO | ||
33 | return Direction.NONE; | ||
34 | } | ||
35 | |||
36 | @Override | ||
37 | public Animal copy() { | ||
38 | // TODO | ||
39 | return null; | ||
40 | } | ||
41 | } | ||