diff options
| author | mo khan <mo@mokhan.ca> | 2019-08-04 17:30:14 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2019-08-04 17:30:14 -0600 |
| commit | 3c90bf05bbce9d4bcb08cce2ec1f6407fc2b6a26 (patch) | |
| tree | 74ea16233b541888d968856d31f27ace1d6ac213 /src/Q9/MovingRobot.java | |
| parent | f876a60babea196af5592c52f6e1b21ed63850e5 (diff) | |
add classes as per prescribed class diagram
Diffstat (limited to 'src/Q9/MovingRobot.java')
| -rw-r--r-- | src/Q9/MovingRobot.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Q9/MovingRobot.java b/src/Q9/MovingRobot.java new file mode 100644 index 0000000..958c757 --- /dev/null +++ b/src/Q9/MovingRobot.java @@ -0,0 +1,28 @@ +package Q9; + +import java.util.*; + +public class MovingRobot { + private ArrayList<Integer> moves = new ArrayList<Integer>(); + private int nextMove; + + public MovingRobot(int x, int y) {} + + public boolean validateNextMove() { + return false; + } + + public int generateNextMove() { + return 0; + } + + public static boolean sameSlot(Robot r1, Robot r2) { + return false; + } + + public String printMoves() { + return ""; + } + + public void move() {} +} |
