diff options
Diffstat (limited to 'src/Q9/README.md')
| -rw-r--r-- | src/Q9/README.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Q9/README.md b/src/Q9/README.md index b6a8a1f..766de90 100644 --- a/src/Q9/README.md +++ b/src/Q9/README.md @@ -56,6 +56,26 @@ Implement this program with a `Robot` class and a `MovingRobot` subclass. 1. Description of the Code + + The program includes a `Robot` class and a `MovingRobot` class that inherits + from Robot. Before the `MovingRobot` can advance to the next position based on + a direction, it will check to see if it is possible to advance without hitting + the bounds of the 9x9 grid. + 1. Errors and Warnings + + This program does not require input from a user. + This program depends on a random number generator to randomly generate the + direction to move the robot towards. This program attempts to check the grid + boundaries before advancing to the next position. + 1. Sample Input and Output + + ```bash + ```` + 1. Discussion + +This was fun. Instead of passing around x and y coordinate, I would have +preferred to extract a `Coordinate` class that can check the boundaries of the +grid. |
