pxt-calliope/docs/courses/csintro/conditionals.md
dkiang 6a215478b0 Variables updates (#473)
* Deleted old images, updated with hand-drawn images

Added new cover image, hand-drawn images.

* Fixed file image path

* Capitalized title

* More additions of original images

* Restored lowercase.

* Replaced traffic light image
2017-08-01 06:55:55 -07:00

1.1 KiB

Conditional statements

Board game example

This lesson introduces the Logic blocks such as 'If...then' and 'If...then...else'. Students practice skills of creativity, problem-solving, and collaboration.

Lesson objectives

Students will...

  • Understand what conditional statements are, and why and when to use them in a program.
  • Learn how to use the Logic blocks 'If...then' and 'If…then...else'.
  • Practice using the Logic blocks so different conditions yield specified outcomes.
  • Demonstrate understanding and apply skill by collaborating with classmates to create a game that uses a micro:bit and a program that correctly and effectively uses conditionals.

Lesson plan

  1. Overview: Conditional statements
  2. Unplugged: Red light, green light
  3. Activity: Rock, paper, scissors
  4. Project: Board game

Targeted CSTA standards