Summer SAVY 2017, Session 5/Day 4- Programming and Robotics (Rising 4th/5th)
Today we got a more practice with variables in the morning. We created stories from mad-libs style templates and talked about how the templates are like programs and the blanks in the templates are like the variables in the program that get filled in. Students also abstracted templates based on a pair of filled-in stories.
Later in the morning, students created complex sphero programs with multiple variables by making a hot potato game. In this program, students created two variables:
Tosses, which is incremented with each toss
PotatoVar, which is set to a random number at the beginning of a round
When the value of tosses was equal to the value of PotatoVar, the sphero strobed red or shook to become a “hot potato,” indicating that the player who last caught sphero was out.
After lunch, student learned about functions, another way to make their programs more abstract. Then, they went to the computer lab to continue working on the games they started yesterday in scratch.
Tomorrow, we are looking forward to creating out most complex game yet. In this game, players will have to perform different actions based on sphero’s color. We are looking forward to sharing these games with you at open house!
Ms. Ashlyn Karan
Leave a Response