summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo/Hamster.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Hamster.java')
-rw-r--r--src/ch/epfl/maze/physical/zoo/Hamster.java56
1 files changed, 27 insertions, 29 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Hamster.java b/src/ch/epfl/maze/physical/zoo/Hamster.java
index a000daf..2a610f2 100644
--- a/src/ch/epfl/maze/physical/zoo/Hamster.java
+++ b/src/ch/epfl/maze/physical/zoo/Hamster.java
@@ -7,37 +7,35 @@ import ch.epfl.maze.util.Vector2D;
7/** 7/**
8 * Hamster A.I. that remembers the previous choice it has made and the dead ends 8 * Hamster A.I. that remembers the previous choice it has made and the dead ends
9 * it has already met. 9 * it has already met.
10 *
11 */ 10 */
12 11
13public class Hamster extends Animal { 12public class Hamster extends Animal {
14 13
15 /** 14 /**
16 * Constructs a hamster with a starting position. 15 * Constructs a hamster with a starting position.
17 * 16 *
18 * @param position 17 * @param position Starting position of the hamster in the labyrinth
19 * Starting position of the hamster in the labyrinth 18 */
20 */ 19
21 20 public Hamster(Vector2D position) {
22 public Hamster(Vector2D position) { 21 super(position);
23 super(position); 22 // TODO
24 // TODO 23 }
25 } 24
26 25 /**
27 /** 26 * Moves without retracing directly its steps and by avoiding the dead-ends
28 * Moves without retracing directly its steps and by avoiding the dead-ends 27 * it learns during its journey.
29 * it learns during its journey. 28 */
30 */ 29
31 30 @Override
32 @Override 31 public Direction move(Direction[] choices) {
33 public Direction move(Direction[] choices) { 32 // TODO
34 // TODO 33 return Direction.NONE;
35 return Direction.NONE; 34 }
36 } 35
37 36 @Override
38 @Override 37 public Animal copy() {
39 public Animal copy() { 38 // TODO
40 // TODO 39 return null;
41 return null; 40 }
42 }
43} 41}