blob: f7084d7ea6bde1ee365e897c7326c42b4c37ab9c (
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
|
package ch.epfl.maze.physical.zoo;
import ch.epfl.maze.physical.Animal;
import ch.epfl.maze.physical.ProbabilisticAnimal;
import ch.epfl.maze.util.Vector2D;
/**
* Mouse A.I. that remembers only the previous choice it has made.
*
* @author EPFL
* @author Pacien TRAN-GIRARD
*/
public class Mouse extends ProbabilisticAnimal {
/**
* Constructs a mouse with a starting position.
*
* @param position Starting position of the mouse in the labyrinth
*/
public Mouse(Vector2D position) {
super(position);
}
@Override
public Animal copy() {
return new Mouse(this.getPosition());
}
}
|