Activity
Coding a Ping-Pong Game with While Loops
Overview
Grades 5-9
60 min
Topics
Computer ScienceSTEM
Status
About the Activity
In computer science, while loops are a type of loop that keeps the code running as long as a certain condition remains true. During this activity, you will learn about while loops by creating a Ping-Pong game!
For this activity, please use a desktop or laptop computer. Mobile devices are not supported.
Instructions
- Click the Launch button below.
- Watch the videos and code along in Scratch!
- When you’re done, come back here and scroll down to the Mark Complete button. Click it to get your pins & points!
This activity is not supported on mobile devices.
Did you enjoy this activity?
Sign up or login to CLOVER
No endorsement by 4-H is implied or intended. 4-H is the youth development program for our nation’s cooperative extension system. Sam Hostman, CLOVER Scratch Specialist, is not affiliated with the University of Georgia or Google in any capacity. Any reference to these entities should not be interpreted as an association.