• Volunteer
  • Teach
  • Programs
    • Chats with Change Makers
    • Engineers Week
    • IMAX Films
    • Introduce a Girl to Engineering
    • World Engineering Day
    • Future City
  • Engineering Activities
  • Engineering Careers
  • Support Us
  • Store
  • Search
  • Join
Donate
Join
  • Volunteer
  • Teach
  • Programs
    • Chats with Change Makers
    • Engineers Week
    • IMAX Films
    • Introduce a Girl to Engineering
    • World Engineering Day
    • Future City
  • Engineering Activities
  • Engineering Careers
  • Support Us
  • Store
  • Search
  • Join
  1. View More Activities

Coding Without Computers

Students learn about force, load, and compression as they explore the load-bearing properties of columns by testing different materials within toilet paper tubes.

Time
  • 1 to 2 Hours
Careers
  • Computer Science
Grade
  • 6-8
  • 9-12
Topic
  • Coding & Robotics
Leader Notes
Materials

Per Group:

  • Disposable cups (10 per team)
  • Blank paper
  • Pencils or pens
Instructions


Using a predefined “robot programming vocabulary” (see below), students will write a program a student “robot” will follow to build cup pyramids as efficiently as possible without verbal conversation. Students learn how computer engineers use the connection between symbols and actions, as well as the valuable skill of debugging code. See examples of this activity in action by searching for “cup stacking coding” on YouTube.

Note: Coding and programming essentially have the same meaning. Both refer to the activity of providing any digital platform (like a PC, robot, or browser) a set of instructions on the tasks it needs to perform.

    1. For preparation, write the programming symbol key and draw the 6-cup pyramid on the board (see diagrams below).
    2. Ask students how robots know what actions to take. Explain that they are programmed to follow specific step-by-step instructions and are programmed just like computers.
    3. Tell students they will write code, using only the 6 arrow symbols on the board, that a human “robot” will use to build a cup pyramid. Their goal is to design a program that gets the 6-cup pyramid built in as few steps as possible.

    1. Begin with a simple example: Stack 2 cups and hold your hand in the air above the stack. Explain that you need them to write a program to tell a robot to get the cups next to each other on the table. Ask the class for the first instruction. The correct answer is “pick up a cup.” (Note: For this activity, “pick up a cup” means to lift the cup above the highest cup already in the stack. Also, a robot may only work with each cup once in a program—there’s no way to instruct the robot to return to a cup that’s already been placed.) With your hand still in the air, ask for the next move. You may have to remind the class that one step forward is only half the width of a cup. Once you’ve placed the cup, ask the class to help you write the symbols on the board to create a program for a robot to follow properly.

    1. Split the class into teams of 3 or 4. Each team should choose one robot. Send the robots to the “robot waiting zone” in another part of the classroom while the “programmers” start coding. Robots can use their time to make sure they understand the rules. The programmers should work together to figure out the moves the robot needs to follow to create a 6-cup pyramid. The idea is to make the instructions as efficient as possible by using the fewest steps. Once they have the steps figured out, the team should translate the steps into a written program using the arrow symbols. They should test their program to make sure it works as they expect, and then fix the bugs as needed.

  1. Next the group will get the robot back to run the program. The programmers are not allowed to tell the robot what to do at all—the robot must exactly follow the instructions in the program. If the group notices a mistake, they are allowed to halt the program, send the robot back to the waiting zone, and fix the error before bringing the robot back to complete the challenge.
  2. Once all the groups are done, have them compare their programs to see how many steps each one has.
  3. Now have each group pick a new robot to go to the robot waiting area. Have the programmers draw a complex pyramid with 10 cups. Then have them write a program that will instruct the robot to build this pyramid. The object is to see how accurately the robot builds the pyramid just from the program without seeing the drawing.
  4. As time allows, have other students take the role of robot with new pyramids and programs.
Translated activity PDFs
  • Arabic
  • Chinese
  • French
  • Russian
  • Spanish

Enjoy this activity?

Join our community and receive activities, early access to programs, and other special news, and/or leave feedback on this activity below!

Thank you! Your submission is processing.

Cancel reply

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

Submitting...

Submit a Comment Cancel reply

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

Print
Downloads
Share this activity with your network!
Enjoy this activity? Please let your friends know!
Share Activity
Challenge created by: ThinkerSmith More Activities from ThinkerSmith
Other Resources
  • Arabic Translated Activity PDF
  • Chinese Translated Activity PDF
  • French Translated Activity PDF
  • Russian Translated Activity PDF
  • Spanish Translated Activity PDF
Related Activities
View All
AI Machine Learning
AI Machine Learning
  • Half Day
  • 6-12
View Activity
AI: Assessing the Risks and Rewards
AI: Assessing the Risks and Rewards
  • Half Day
  • 6-12
View Activity
Cyber Sleuth: Which DMs Can I Trust?
Cyber Sleuth: Which DMs Can I Trust?
  • 45 minutes or Less
  • 6-12
View Activity
Stop the Cyberattacks!
Stop the Cyberattacks!
  • 45 minutes or Less
  • 6-12
View Activity
Lidar: Mapping with Lasers
Lidar: Mapping with Lasers
American Society of Civil Engineers
  • 45 minutes or Less
  • 6-12
View Activity
My Robot Friend
My Robot Friend
Saint Louis Science Center
  • 45 minutes or Less
  • 3-8
View Activity
Robot Challenge
Robot Challenge
Saint Louis Science Center
  • 1 to 2 Hours
  • 6-12
View Activity
Operation Polar Eye
Operation Polar Eye
ThinkerSmith
  • 1 to 2 Hours
  • 6-12
View Activity
Homemade Wigglebot
Homemade Wigglebot
  • 45 minutes or Less
  • K-5
View Activity
DiscoverE helps create activities like this around Coding & Robotics for children in Middle School and High School to help prepare them for STEM careers in fields like Computer Science.

Find our resources helpful?
Please consider donating.

Make a donation

Want to find out how you can volunteer?

Get Involved

DiscoverE works to provide every student with a STEM experience and the resources, programs, and connections to improve the understanding of engineering through a united voice and a global distribution network.

The development of this site was made possible by a grant from the United Engineering Foundation (UEF).

About Us

  • Our Story
  • Our Board & Staff
  • Our Impact
  • Donate

Get Involved

  • Messages Matter
  • Teach
  • Volunteer
  • Our Programs
  • Store

Resources

  • Learn about Engineering Careers
  • Engineering Activities
  • Our Blog
  • Logos & Graphics
  • Outreach Grants

Connect

  • Facebook
  • LinkedIn
  • Instagram
  • YouTube
  • Twitter
  • Pinterest
  • Contact Us
Website designed and developed by RedSwan5.

© 2025 DiscoverE. All rights reserved.

Privacy Policy | Terms & Conditions

Join Our Community

Stay up-to-date with all the programs and resources that Discover E has to offer!

Login or Create Account

All of the content on this site is free!

Registering for the site helps us tailor future activities, webinars, and events so that we can serve you better.

Thank you for your interest and for helping us in our mission to transform lives as we put the E in STEM!

Login Form

Log in or sign up

Forgot your password?

Don’t have an account? Sign up!

We use cookies that are necessary to make our site work. We may also use additional cookies to analyze, improve, and personalize our content and your digital experience. For more information, see our Cookie Policy.OKCookie Policy