summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo/Panda.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Panda.java')
-rw-r--r--src/ch/epfl/maze/physical/zoo/Panda.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Panda.java b/src/ch/epfl/maze/physical/zoo/Panda.java
new file mode 100644
index 0000000..73c7194
--- /dev/null
+++ b/src/ch/epfl/maze/physical/zoo/Panda.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 * Panda A.I. that implements Trémeaux's Algorithm.
9 *
10 */
11public class Panda extends Animal {
12
13 /**
14 * Constructs a panda with a starting position.
15 *
16 * @param position
17 * Starting position of the panda in the labyrinth
18 */
19
20 public Panda(Vector2D position) {
21 super(position);
22 // TODO
23 }
24
25 /**
26 * 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
28 * colors). It will prefer taking the least marked paths. Special cases
29 * have to be handled, especially when the panda is at an intersection.
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}