blob: 2a610f23f1306138450f8a21d94234f2afe9cb86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package ch.epfl.maze.physical.zoo;
import ch.epfl.maze.physical.Animal;
import ch.epfl.maze.util.Direction;
import ch.epfl.maze.util.Vector2D;
/**
* Hamster A.I. that remembers the previous choice it has made and the dead ends
* it has already met.
*/
public class Hamster extends Animal {
/**
* Constructs a hamster with a starting position.
*
* @param position Starting position of the hamster in the labyrinth
*/
public Hamster(Vector2D position) {
super(position);
// TODO
}
/**
* Moves without retracing directly its steps and by avoiding the dead-ends
* it learns during its journey.
*/
@Override
public Direction move(Direction[] choices) {
// TODO
return Direction.NONE;
}
@Override
public Animal copy() {
// TODO
return null;
}
}
|