summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-22 17:11:05 +0100
committerPacien TRAN-GIRARD2015-11-22 17:11:05 +0100
commitc294cfcfc8757018c8a5c816d512a3343d2aa840 (patch)
treec774087bb08c058a4a3f4a7cabf355c148f6c85d
parent17057b8e126e1378bda9c499828a87f5e397e367 (diff)
downloadmaze-solver-c294cfcfc8757018c8a5c816d512a3343d2aa840.tar.gz
Implement PacMan A.I.
-rw-r--r--src/ch/epfl/maze/physical/pacman/PacMan.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ch/epfl/maze/physical/pacman/PacMan.java b/src/ch/epfl/maze/physical/pacman/PacMan.java
index bb167af..ee1ee28 100644
--- a/src/ch/epfl/maze/physical/pacman/PacMan.java
+++ b/src/ch/epfl/maze/physical/pacman/PacMan.java
@@ -8,24 +8,23 @@ import ch.epfl.maze.util.Vector2D;
8 8
9/** 9/**
10 * Pac-Man character, from the famous game of the same name. 10 * Pac-Man character, from the famous game of the same name.
11 *
12 * @author Pacien TRAN-GIRARD
11 */ 13 */
12
13public class PacMan extends Prey { 14public class PacMan extends Prey {
14 15
15 public PacMan(Vector2D position) { 16 public PacMan(Vector2D position) {
16 super(position); 17 super(position);
17 // TODO
18 } 18 }
19 19
20 @Override 20 @Override
21 public Direction move(Direction[] choices, Daedalus daedalus) { 21 public Direction move(Direction[] choices, Daedalus daedalus) {
22 // TODO 22 return this.move(choices);
23 return Direction.NONE;
24 } 23 }
25 24
26 @Override 25 @Override
27 public Animal copy() { 26 public Animal copy() {
28 // TODO 27 return new PacMan(this.getPosition());
29 return null;
30 } 28 }
29
31} 30}