Avoiding Obstacles with the Alpha Rex
Jeff Owrey explains the concept of abstraction - building your code bottom up using MyBlocks to hide implementation details of lower levels. He uses abstraction to program Alpha Rex. First, he explains how to perform elementary motion steps, then compose these into complex motion and finally add in obstacle avoidance.