Lesson_Header_Coding_With_Minecraft-5-554x368.png

Unit 5: Conditionals

8-10 yrs old

11-13 yrs old

14-18 yrs old

Computer Science

Students explore the concept of conditionals. An important part of programming used to tell the computer when to perform a certain task.

7
avatar Submitted By: Minecraft Education

October 2, 2020

Skills

  • Critical Thinking
  • Project Based Learning

External References

Classroom Presentation

Coding with Minecraft 5-Conditionals-Presentation

Educator guide

Coding with Minecraft 5-Conditionals-Educator guide

Student workbook

Coding with Minecraft 5-Conditionals-Student workbook

Overview Video

Conditionals Overview Video

Learning Objectives

  • CL.L2-05 Implement problem solutions using a programming language, including: looping behavior, conditional statements logic, expressions, variables, and functions.
  • CL.L2-03 Collaborate with peers, experts, and others using collaborative practices such as pair programming, working in project teams, and participating in group active learning activities.
  • CL.L2-04 Exhibit dispositions necessary for collaboration: providing useful feedback, integrating feedback, understanding and accepting multiple perspectives, socialization.
  • CL.L3A-01 Work in a team to design and develop a software artifact.
  • K-12 Computer Science Framework Core Concept: Control Structures.

Guiding Ideas

All the following lessons are approximately 45-60 minutes, depending on how much time you give students to explore the coding activities.

Lesson A: Introduction to conditionals

Lesson B: Coding with conditionals (Please note that depending on time, this lesson may be broken into two parts by separating the coding activities into separate sessions)

Lesson C: Debug problem code with conditionals

Lesson D: Get creative with conditionals

Please review the Coding With Minecraft Educator Preparation Video and Educator Guide attached for additional details.

Student Activities

In this unit, students will explore the concept of conditionals. An important part of programming is telling the computer when to perform a certain task. Conditionals accomplish this by requiring a certain condition or rule to be met before an action is performed. Students get familiar with the concept through a kinesthetic unplugged activity. They get hands-on experience with guided coding activities to create a game that compares their age with other classmates, code their agent to chop wood and mine for resources, and evaluate and improve existing code. In the final activity, students use collaborative design and pair programming techniques to solve a problem players encounter in Minecraft by coding with conditionals.

Performance Expectations

By the end of this unit, students will be able to:

  • Describe the importance of conditionals in coding.
  • Create IF THEN and IF THEN ELSE conditional statements.
  • Code with a variety of conditional blocks to automate their agent to find and collect important resources.
  • Evaluate code to identify problems like infinite loops and debug the code with conditionals.
  • Add a Say block inside if then blocks to help debug problem code.
  • Work collaboratively to design an original creative project to apply their coding skills in new ways

Please review the Assessment Guide for additional details.

Skills

  • Critical Thinking
  • Project Based Learning

External References

Classroom Presentation

Coding with Minecraft 5-Conditionals-Presentation

Educator guide

Coding with Minecraft 5-Conditionals-Educator guide

Student workbook

Coding with Minecraft 5-Conditionals-Student workbook

Overview Video

Conditionals Overview Video