summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-08-11 18:24:19 -0600
committermo khan <mo@mokhan.ca>2019-08-11 18:24:19 -0600
commita4a0875e6261f61fb5b53a6aab64c1acbfb02ff9 (patch)
treec872a5c2722af4c1390766f83f4122805193d0ba
parent36ff9f50e2943bb6c4aaf3c798d2fff2bd380b56 (diff)
add shots of the first and last screen for Q9
-rw-r--r--src/Q9/README.md45
1 files changed, 42 insertions, 3 deletions
diff --git a/src/Q9/README.md b/src/Q9/README.md
index 766de90..398aac9 100644
--- a/src/Q9/README.md
+++ b/src/Q9/README.md
@@ -68,11 +68,50 @@
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. Screenshot from the initial draw of the program.
+
+ ```bash
+ ==== Question 9 ====
+ | | | | | | | | | | |
+ |1| | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | |2|
+ | | | | | | | | | | |
+
+ R1 (1, 0): [4]
+ R2 (8, 9): [3]
+ ```
+
+ 1. Screenshot from the final draw of the program.
+
+ ```bash
+ ==== Question 9 ====
+ | | | | | | | | | | |
+ | | | |X| | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+ | | | | | | | | | | |
+
+ R1 (1, 3):
+ [4,4,2,7,6,1,4,2,7,6,7,2,4,3,6,3,3,2,7,5,6,2,7,3,1,2,7,7,6,6,4,3,2,1,1,1,2,2,7,3,2,4,2]
+ R2 (1, 3):
+ [3,5,7,4,1,5,2,7,1,2,1,1,1,1,6,2,7,3,5,7,4,3,2,7,3,4,6,2,7,3,6,3,3,3,2,6,2,5,3,1,6,4,1]
+ ```
+
+ ![gif](../../doc/q9.gif)
1. Discussion