
258 CHAPTER 16
If the Enter button has not been bumped, the program
enters another Switch block that asks if you bumped the
Left button—meaning you want Golf-Bot to aim more to the
left (Figure 16-12). If you have bumped the Left button, the
Switch block’s top sequence beam executes a Sound block
that instructs Golf-Bot to say, “Left.” After waiting for you
to load the ball, Golf-Bot positions its hand slightly to the
left of the previous spot where it placed the ball. Finally, it
executes the familiar Hit Ball block to hit the ball. If you did
not bump the Left button, another Switch block asks if you
bumped the Right button, which means yo ...