In this lesson plan which is adaptable for grades 3-12, students use BrainPOP resources (including an online game) to explore computer coding, algorithms, and programming.
- Computers with internet access for BrainPOP
- Class set of Graphic Organizer photocopies
Preparation:This lesson plan uses a free online game from Google called Blockly: Maze. In this game, students are introduced to concepts behind simple computer programming with a graphical editing tool that uses blocks instead of typed characters. Students will learn to drag blocks together to build a simple web application. Running the app, students must instruct a character to move properly through a maze in order to reach a specified target. As they succeed in early levels, they will advance to more and more complicated tasks. The game covers simple directional commands, simple loops, while loops, and if-then-else statements.
- As a warm-up, have students complete the Graphic Organizer.
- Have students trade papers with a friend and attempt to follow the directions exactly as they are written. Instruct students not to make any inferences at all.
- Ask student volunteers to share examples of missed or unclear steps in the algorithm and talk about how those mistakes affected the outcome.
- Draw students' attention to the directions that read, "If they can't follow it, you'll need to iterate." What does the word "iterate" mean in this context?
- Play the Computer Programming movie for the class and have students share in their own words what it means to create computer code.
- Encourage students to relate the warm-up activity to computer programming. What happens when there is an error in an algorithm provided for a computer?
- Tell students they will have the chance to create and test out an algorithm in an online game called Blockly: Maze. Have students explore the game independently or in pairs for approximately 5-10 minutes.
- Have students take a brief break from game play to talk about what they noticed, and what they learned about creating an accurate algorithm.
- Provide an additional 5-15 minutes for students to advance through additional levels of Blockly and apply the understandings they gained during the class discussion.
- Encourage students to create their own version of the Blockly game, either online or offline. Have them work collaboratively to design an opportunity for classmates to practice coding and writing algorithms in order to complete a specific task. Allow students to explore one another's games and relate them to what they know about computer programming.
- For additional assessment of student learning, you can use the Activity, Movie Quiz, or the game quiz.
Filed as: 3-5, 6-8, 9-12, Ada Lovelace, Binary, Blended Classroom, Blockly: Maze, CCSS.ELA-Literacy.RI.4.10, CCSS.ELA-Literacy.RI.4.7, CCSS.ELA-Literacy.RI.5.10, CCSS.ELA-Literacy.RI.5.3, CCSS.ELA-Literacy.RST.11-12.3, CCSS.ELA-Literacy.RST.11-12.4, CCSS.ELA-Literacy.RST.11-12.7, CCSS.ELA-Literacy.RST.11-12.9, CCSS.ELA-Literacy.RST.6-8.7, CCSS.ELA-Literacy.RST.9-10.3, CCSS.ELA-Literacy.RST.9-10.4, CCSS.ELA-Literacy.RST.9-10.5, CCSS.ELA-Literacy.RST.9-10.7, Computer Programming, Computer Programming Games, Digital Animation, GameUP, Lesson Plan, Logic Gates, Technology, Tynker, Tynker: 15-Block Challenge, Tynker: Lost In Space, Video Games