12

using variables, constants, and playing games on the NXT

If you’ve made it this far, you’re just a few steps away from mastering all of the programming skills in this book. By now you’ve learned how to use many different programming blocks, as well as how to work with essential tools such as data wires. This chapter completes the programming section of this book by teaching you how to use the NXT memory with variables as well as how to use constants.

In addition to learning about variables and constants, you’ll create a program in this chapter that combines almost all of the programming skills you’ve learned so far. This somewhat advanced program will demonstrate yet another possibility of the NXT system: It will let you play a real game on ...

Get The LEGO MINDSTORMS NXT 2.0 Discovery Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.