Register to receive free access to all teacher materials.
Lesson Level
Advanced I
Created By
This activity was based on an exercise by Peter Meade.
Programming Language
Snap!
Grades
4-5, 6-8, 9-12
Free Teacher Materials
In this activity, you will write a project that will enable someone to use the computer keyboard to control the Finch. Maybe you can even use your program to show the Finch to younger students at your school! For this project, the Finch should do the following:
- When the user presses the up arrow, the robot should move forward. The robot should stop moving forward when the user releases the up arrow.
- When the user presses the down arrow, the robot should move backward. The robot should stop moving backward when the user releases the down arrow.
- When the user presses the left arrow, the robot should turn left. The robot should stop turning when the user releases the left arrow.
- When the user presses the right arrow, the robot should turn right. The robot should stop turning when the user releases the right arrow.
Extension: Use your imagination! Add additional keyboard controls, or add lights and sound.