summaryrefslogtreecommitdiff
path: root/src/Q9/MovingRobot.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Q9/MovingRobot.java')
-rw-r--r--src/Q9/MovingRobot.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Q9/MovingRobot.java b/src/Q9/MovingRobot.java
index 8c20ec8..ba587ab 100644
--- a/src/Q9/MovingRobot.java
+++ b/src/Q9/MovingRobot.java
@@ -28,7 +28,7 @@ public class MovingRobot extends Robot {
/**
* Checks to see if a robot can advance in the direction provided.
*
- * @param the direction that a robot wants to advance to.
+ * @param direction the direction that a robot wants to advance to.
* @return returns true if the robot can advance to the given direction.
*/
public boolean validateNextMove(int direction) {
@@ -59,7 +59,11 @@ public class MovingRobot extends Robot {
return this.rng.nextInt(7) + 1;
}
- /** @return true if the two robots are in the same coordinate. */
+ /**
+ * @param r1 robot 1
+ * @param r2 robot 2
+ * @return true if the two robots are in the same coordinate.
+ */
public static boolean sameSlot(Robot r1, Robot r2) {
return r1.getX() == r2.getX() && r1.getY() == r2.getY();
}