Protocode

Protocode:

The mars rover is trying to get to another patch of land so that it can find new rock samples, but there are boulders in the way. So if it senses an obstacle, it will turn left, move forward, turn right, move forward, then turn right, move forward, and then finally turn left and keep going to the patch with new rock samples, unless there is another obstacle in which case it repeats this process.

Leave a Reply

Your email address will not be published. Required fields are marked *