Chapter 7. the WallFollower program: navigating a maze

In this chapter, we’ll create the WallFollower program that allows the TriBot to find its way out of a simple maze. As you create the program, I’ll take you through all the steps required to plan and write a program, from the initial design to the final testing. This will include choosing the initial settings for certain blocks, seeing how well they work, and adjusting those settings as necessary—because programs almost never work exactly right the first time you run them. Let’s start by learning how to read and write pseudocode.

pseudocode

The more complex your program is, the more difficult it is to give a short, precise description of the program using normal sentences and paragraphs. There ...

Get The Art of LEGO MINDSTORMS EV3 Programming (Full Color) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.