Resources

Indentation and Scores

Home/Resources/Indentation and Scores

Indentation and Scores

Digital Technology Computer Science

Prerequisites

Learning Objectives

  • Learn the effective range of the “eat” action.
  • Learn the new idioms: “Do Two Things” and “Count Actions”
  • Learn the rule indentation.
  • Learn that empty WHEN predicates are always “true”.
  • Learn that failing to indent a rule means its action occurs all the time.
  • Learn the “score” action adds points to a score.
  • Learn the “boom” action blows something up.
  • Learn that the “give” action gives another character the object we are holding.

Contents

Student Activities

Measure1 Exercise: How far away can an object be eaten?
Explore and run the following Kodu World: “Measure1”. Use Critical Thinking skills to determine how far away an object can be placed away from an character and still be eaten. Use Math skills by measuring the distance from the character to the object. Use Science skills to experiment with moving the object closer to the character in order for the code to work as expected. Use collaboration skills to discuss the distance required before the character pursues the object.
Subjects:Math, Science, Computer Science, Engineering, Arts, 21st Century Learning

HeartCannon1X Exercise: Combine Pursue and Consume with Count Actions
Explore and run the following World: “HeartCannon1x”. Use Critical Thinking skills to combine pursue and consume with count actions. Examine the code being used on the character in the world. Use math skills to determine the number of objects the character can consume in the time constraints. Use Computer Science skills to keep a record of the objects consumed as well as control an object.
Subjects:Math, Computer Science, Engineering, 21st Century Learning

BoomPipes1 Exercise: Combine Pursue and Consume with Count Actions
Explore and run the following World: “BoomPipes1”. Use Critical Thinking skills to combine pursue and consume with count actions. Examine the code being used on the character in the world. Use Math skills to determine the number of objects the character must remove. Use Computer Science skills to keep a record of the objects removed as well as control an object.
Subjects:Math, Computer Science, Engineering, 21st Century Learning

Giver1 Tips: Combine Pursue and Consume with Do Two Things
Explore and run the following World: “Giver1”. Use Critical Thinking skills to combine pursue and consume with giving objects and playing sound. Examine the code being used on the characters in the world. Use Computer Science skills to control the actions of a character. Use Music skills to play sounds that will send a character home.
Subjects: Math, Computer Science, Engineering, Music, 21st Century Learning

Fruit Salad Tips: Combine Pursue and Consume with Count Actions
Start a New World. Use Critical Thinking skills to combine pursue and consume with count actions. Learners should design a space large enough for an enclosed wall, objects, and a character. Explore various colors and sizes for the objects. Use Math skills to count the calories consumed by the character. Use Computer Science skills to have the character consume healthy calories and launch allergic objects over the wall.
Subjects:Math, Computer Science, Engineering, Health, Arts, 21st Century Learning

Two Shooter Tips: Simple Two-Player Game
Start a New World. Use Creativity and Collaboration skills to design and compete in the world. Use Digital Technology skills to design a spiky place with an enclosed wall, objects, and two characters. Build rockets for the characters and be creative with the game rules. Explore various colors and sizes for the objects.
Subjects:Computer Science, Engineering, Digital Technology, 21st Century Learning

Activity Note: If you want to replace the Gamepad with Keyboard, Mouse, follow these steps to replace Gamepad tiles:

  • Gamepad with Keyboard
  • Player1 with UP DOWN LEFT RIGHT
    • L stick with Right Mouse Click
    • L trig with Left Mouse Click
  • Player2 with WASD
    • L stick with Space
    • L trig with F

Homework 3: Make a Count Actions or Do Two Things world
Start a New World. Use Creativity and Collaboration to design a large space for four (4) character and (5) objects of various sizes. Use Computer Science skills to program a character to consume objects and play a sound after it consumes an object.
Subjects:Math, Computer Science, Engineering, Arts, 21st Century Learning

Activity Note: If you want to replace the Gamepad with Keyboard, Mouse, watch Add Terrain.

Performance Expectations

Assessment 3: Pursue and Consume, rule dependency, and indentation
Report an understanding of the following concepts:

  • Effective range of the “eat” action.
  • New idioms: “Do Two Things” and “Count Actions”
  • Rule indentation.
  • Empty WHEN predicates are always “true”.
  • Failing to indent a rule means its action occurs all the time.
  • The “score” action adds points to a score.
  • The “boom” action blows something up.
  • The “give” action gives another character the object we are holding.

Skills

Character, Citizenship, Collaboration, Communication, Creativity, Critical Thinking, Project Based Learning