program requirements
The first step in writing this program is to define what the program will do. To implement the right-hand rule algorithm, the program needs to follow a wall to the right of the TriBot, moving into any openings on that side. The TriBot also needs to be able to detect when it has reached a corner, at which point it needs to make the appropriate turn.
It’s useful to create a simple list, called the program requirements, to describe exactly what the program needs to do. As long as the final program meets all the requirements on the list, then it should solve the original problem. Once you have the program written, you can use this list to test your design.
To develop the list of requirements, it’s useful to think about the different ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access