The following is an offline coding activity that will help your students better understand what Events & Handlers are. This activity was covered in CodeMonkey’s Game Builder webinar – Let the Games Begin! Game Builder in Your Classroom.
Materials Needed:
- Pen/ Marker
- 2 Different Colored Cards
- 15 Red Cards = Events
- 15 Green Cards = Handlers
Prep:
- On each Event card, write an event (For example: Cross Arms, Clap Hands, Pat Head, etc.)
- On each handler card, write a command. (For example, “If someone crosses arms, take a knee.” “If someone claps hands, jump up” .“If someone pats head, say Jumanji”)
- Distribute cards face down
- Form two lines: Events and Handlers
- Go down the event line one at a time having each student perform what is on their card
- Handlers will react based on the behavior of the Events line
- After one time down the line, switch roles. Events trade with Handlers
- Repeat 3 – 5 times
- After switching roles, encourage Handlers to rewrite the “then” part of their action.
- Go down the line again to see how the “code has changed”
- Using Notebooks, record the events and handlers you participated in.
Good Luck!
One Reply to “Events & Handlers Unplugged Activity”
iloooooove