blob: 08d7f3da79982cf35bd72e4935a875721be31cd0 (
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
|
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 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());
}
}
|