summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo/Mouse.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Mouse.java')
-rw-r--r--src/ch/epfl/maze/physical/zoo/Mouse.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Mouse.java b/src/ch/epfl/maze/physical/zoo/Mouse.java
new file mode 100644
index 0000000..17d8b5c
--- /dev/null
+++ b/src/ch/epfl/maze/physical/zoo/Mouse.java
@@ -0,0 +1,41 @@
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 * Mouse A.I. that remembers only the previous choice it has made.
9 *
10 */
11
12public class Mouse extends Animal {
13
14 /**
15 * Constructs a mouse with a starting position.
16 *
17 * @param position
18 * Starting position of the mouse in the labyrinth
19 */
20
21 public Mouse(Vector2D position) {
22 super(position);
23 }
24
25 /**
26 * Moves according to an improved version of a <i>random walk</i> : the
27 * mouse does not directly retrace its steps.
28 */
29
30 @Override
31 public Direction move(Direction[] choices) {
32 // TODO
33 return Direction.NONE;
34 }
35
36 @Override
37 public Animal copy() {
38 // TODO
39 return null;
40 }
41}