diff options
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Panda.java')
-rw-r--r-- | src/ch/epfl/maze/physical/zoo/Panda.java | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Panda.java b/src/ch/epfl/maze/physical/zoo/Panda.java index 73c7194..c168d97 100644 --- a/src/ch/epfl/maze/physical/zoo/Panda.java +++ b/src/ch/epfl/maze/physical/zoo/Panda.java | |||
@@ -6,38 +6,36 @@ import ch.epfl.maze.util.Vector2D; | |||
6 | 6 | ||
7 | /** | 7 | /** |
8 | * Panda A.I. that implements Trémeaux's Algorithm. | 8 | * Panda A.I. that implements Trémeaux's Algorithm. |
9 | * | ||
10 | */ | 9 | */ |
11 | public class Panda extends Animal { | 10 | public class Panda extends Animal { |
12 | 11 | ||
13 | /** | 12 | /** |
14 | * Constructs a panda with a starting position. | 13 | * Constructs a panda with a starting position. |
15 | * | 14 | * |
16 | * @param position | 15 | * @param position Starting position of the panda in the labyrinth |
17 | * Starting position of the panda in the labyrinth | 16 | */ |
18 | */ | ||
19 | 17 | ||
20 | public Panda(Vector2D position) { | 18 | public Panda(Vector2D position) { |
21 | super(position); | 19 | super(position); |
22 | // TODO | 20 | // TODO |
23 | } | 21 | } |
24 | 22 | ||
25 | /** | 23 | /** |
26 | * Moves according to <i>Trémeaux's Algorithm</i>: when the panda | 24 | * Moves according to <i>Trémeaux's Algorithm</i>: when the panda |
27 | * moves, it will mark the ground at most two times (with two different | 25 | * moves, it will mark the ground at most two times (with two different |
28 | * colors). It will prefer taking the least marked paths. Special cases | 26 | * colors). It will prefer taking the least marked paths. Special cases |
29 | * have to be handled, especially when the panda is at an intersection. | 27 | * have to be handled, especially when the panda is at an intersection. |
30 | */ | 28 | */ |
31 | 29 | ||
32 | @Override | 30 | @Override |
33 | public Direction move(Direction[] choices) { | 31 | public Direction move(Direction[] choices) { |
34 | // TODO | 32 | // TODO |
35 | return Direction.NONE; | 33 | return Direction.NONE; |
36 | } | 34 | } |
37 | 35 | ||
38 | @Override | 36 | @Override |
39 | public Animal copy() { | 37 | public Animal copy() { |
40 | // TODO | 38 | // TODO |
41 | return null; | 39 | return null; |
42 | } | 40 | } |
43 | } | 41 | } |