O'Reilly logo

Lego Mindstorms NXT-G Programming Guide, Second Edition by James Floyd Kelly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. True or False?

What is the difference between the following two questions?

  • What color is the sky?

  • Is the sky blue?

Well, there are a lot of differences: the first question has five words and the second one has four words, for example. My real point in asking these two questions is to point out that the first question is open-ended; the sky could be blue, or gray, or any number of answers. The second question, however, has only two possible answers: Yes or No.

When it comes to programming your robots, you need to understand that many times your robots can only provide you with those two answers: Yes or No. At other times, your robots can understand only a Yes or No answer. Understanding how to take a Yes/No answer and use it to properly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required