Castle Crasher
Lesson 4: Creating Algorithms

# Compete

Now that you have learned how to code your robot to autonomously push cubes off of a raised Field, you are ready for the Sweep the Field Challenge.

The goal of this challenge is to clear four cubes from the Field in the fastest possible time. The animation below shows how the Field should be set up, and one possible path to clear the cubes from the Field. The robot that clears the cubes the fastest wins./p>

Follow the steps in this document to complete the Sweep the Field Challenge.

Video file

Once you have completed the Sweep the Field Challenge, check in with your teacher. Ensure you have documented the results of the challenge in your engineering notebook.

## Wrap Up Reflection

Now that you have created a strategy and competed in the Sweep the Field Challenge, it is time to reflect on what you have learned and done in this Lesson. Start a new page in your engineering notebook to begin your reflection.

Rate yourself as a novice, apprentice, or expert on each of the following concepts in your engineering notebook. Provide a brief explanation for why you gave yourself that rating for each concept:

• Using the sensors in a VEXcode IQ project
• Creating an algorithm using the Distance and Optical Sensors
• Collaborating with my team members to improve the robot's performance in the Sweep the Field Challenge

Use this table to help you determine which category you fall under.

 Expert I feel that I fully understood the concept and could teach this to someone else. Apprentice I feel that I understood the concept enough to compete in the challenge. Novice I feel that I did not understand the concept and do not know how to complete the challenge.

## What is Next?

In this Lesson, you added the Optical Sensor to your robot, and coded an algorithm to clear cubes from the Field. Now it is time to compete in the Castle Crasher Competition!

In the next Lesson, you will:

• Go over the rules of the competition
• Develop a game strategy
• Compete in the Castle Crasher Competition!

Select < Return to Lessons to go back to the Lesson Overview.

Select Next Lesson > to continue to Lesson 5 and learn how to participate in the Castle Crasher Competition!