diff options
author | Pacien TRAN-GIRARD | 2015-11-21 10:44:42 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-11-21 10:44:42 +0100 |
commit | 90bd766f361083f6fd9e39ff080c83fcc606832f (patch) | |
tree | df81a931c9565a4b227068680087f58fdace1859 /src/ch/epfl/maze/physical/zoo/Mouse.java | |
parent | 655ac88f4e73b2df532a451aedf5a561ea1b0d2c (diff) | |
download | maze-solver-90bd766f361083f6fd9e39ff080c83fcc606832f.tar.gz |
Reformat imported code
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo/Mouse.java')
-rw-r--r-- | src/ch/epfl/maze/physical/zoo/Mouse.java | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Mouse.java b/src/ch/epfl/maze/physical/zoo/Mouse.java index 17d8b5c..e5cb9ae 100644 --- a/src/ch/epfl/maze/physical/zoo/Mouse.java +++ b/src/ch/epfl/maze/physical/zoo/Mouse.java | |||
@@ -6,36 +6,34 @@ import ch.epfl.maze.util.Vector2D; | |||
6 | 6 | ||
7 | /** | 7 | /** |
8 | * Mouse A.I. that remembers only the previous choice it has made. | 8 | * Mouse A.I. that remembers only the previous choice it has made. |
9 | * | ||
10 | */ | 9 | */ |
11 | 10 | ||
12 | public class Mouse extends Animal { | 11 | public class Mouse extends Animal { |
13 | 12 | ||
14 | /** | 13 | /** |
15 | * Constructs a mouse with a starting position. | 14 | * Constructs a mouse with a starting position. |
16 | * | 15 | * |
17 | * @param position | 16 | * @param position Starting position of the mouse in the labyrinth |
18 | * Starting position of the mouse in the labyrinth | 17 | */ |
19 | */ | 18 | |
20 | 19 | public Mouse(Vector2D position) { | |
21 | public Mouse(Vector2D position) { | 20 | super(position); |
22 | super(position); | 21 | } |
23 | } | 22 | |
24 | 23 | /** | |
25 | /** | 24 | * Moves according to an improved version of a <i>random walk</i> : the |
26 | * Moves according to an improved version of a <i>random walk</i> : the | 25 | * mouse does not directly retrace its steps. |
27 | * mouse does not directly retrace its steps. | 26 | */ |
28 | */ | 27 | |
29 | 28 | @Override | |
30 | @Override | 29 | public Direction move(Direction[] choices) { |
31 | public Direction move(Direction[] choices) { | 30 | // TODO |
32 | // TODO | 31 | return Direction.NONE; |
33 | return Direction.NONE; | 32 | } |
34 | } | 33 | |
35 | 34 | @Override | |
36 | @Override | 35 | public Animal copy() { |
37 | public Animal copy() { | 36 | // TODO |
38 | // TODO | 37 | return null; |
39 | return null; | 38 | } |
40 | } | ||
41 | } | 39 | } |