a1tD0000003mDswIAE

Course: Game Design
2: Guess What!

  • 6-8 grade
  • Intermediate

Lesson Description:

In this lesson, the students will learn how to make NAO robot play the number guessing game with them.


 

Standards Covered

CCSS.ELA-LITERACY.L.8.4.A

Use context (e.g., the overall meaning of a sentence or paragraph; a word's position or function in a sentence) as a clue to the meaning of a word or phrase.

CCSS.ELA-LITERACY.L.8.6

Acquire and use accurately grade-appropriate general academic and domain-specific words and phrases; gather vocabulary knowledge when considering a word or phrase important to comprehension or expression.

CCSS.ELA-LITERACY.RI.6.4

Determine the meaning of words and phrases as they are used in a text, including figurative, connotative, and technical meanings.

CCSS.ELA-LITERACY.RI.6.7

Integrate information presented in different media or formats (e.g., visually, quantitatively) as well as in words to develop a coherent understanding of a topic or issue.

CCSS.ELA-LITERACY.RST.6-8.3

Follow precisely a multistep procedure when carrying out experiments, taking measurements, or performing technical tasks.

CCSS.ELA-LITERACY.RST.6-8.4

Determine the meaning of symbols, key terms, and other domain-specific words and phrases as they are used in a specific scientific or technical context relevant to grades 6-8 texts and topics.

CCSS.ELA-LITERACY.RST.6-8.5

Analyze the structure an author uses to organize a text, including how the major sections contribute to the whole and to an understanding of the topic.

CCSS.ELA-LITERACY.RST.6-8.6

Analyze the author's purpose in providing an explanation, describing a procedure, or discussing an experiment in a text.

CCSS.ELA-LITERACY.SL.6.1.B

Follow rules for collegial discussions, set specific goals and deadlines, and define individual roles as needed.

CCSS.ELA-LITERACY.SL.6.1.C

Pose and respond to specific questions with elaboration and detail by making comments that contribute to the topic, text, or issue under discussion.

CCSS.ELA-LITERACY.SL.6.1.D

Review the key ideas expressed and demonstrate understanding of multiple perspectives through reflection and paraphrasing.

CCSS.ELA-LITERACY.SL.6.5

Include multimedia components (e.g., graphics, images, music, sound) and visual displays in presentations to clarify information.

CCSS.ELA-LITERACY.W.6.4

Produce clear and coherent writing in which the development, organization, and style are appropriate to task, purpose, and audience. (Grade-specific expectations for writing types are defined in standards 1-3 above.)

CCSS.ELA-LITERACY.W.6.6

Use technology, including the Internet, to produce and publish writing as well as to interact and collaborate with others; demonstrate sufficient command of keyboarding skills to type a minimum of three pages in a single sitting.

CCSS.MATH.PRACTICE.MP1

Make sense of problems and persevere in solving them.

CCSS.MATH.PRACTICE.MP2

Reason abstractly and quantitatively.

CCSS.MATH.PRACTICE.MP7

Look for and make use of structure.

CCSS.MATH.PRACTICE.MP8

Look for and express regularity in repeated reasoning.

image description

Lesson Modules


Teaching Tips:


Introducing the Lesson (2 minutes)
This lesson is an introduction to all number-based games. Before running the program, it might be a good idea to refresh students’ memory of the comparison operators (<, > and =). Some students remember this by thinking of the operators as an alligator who wants to eat the bigger number.

Introducing the Game (3 minutes)
This game is a normal number guessing game. The robot will think of a number and you have to try to guess that number in as few tries as possible. Spend a few minutes having students play this game with each other before they play with the robot. This way they have a better understanding of, and recent experience with, the game.

Play the Game! (20 minutes)
Have a student volunteer read through the questions on the Play The Game! page out loud to the class. Discuss the meaning of each question to ensure students understand what they are being asked.

Have students play the game and answer the questions. They should work as a group to do this investigation. Only the Investigation Robot Master should control the robot.
Discuss student answers as a class.

Explain the Game! (10 minutes)
Have students write a full user-side walk through of the game on the Explain The Game! page.

Have a few students volunteer to read their write-ups to the class. It might be wise to pre-select students as they are writing by reading a little over their shoulders and selecting write-ups that will spur discussion.


Leading the Discussion
In general, students should be the main contributors to the discussion. As the teacher, you should ask questions to facilitate discussion and guide the discussion in the correct direction. Sample questions are provided below.

There are some concepts in this lesson, however, that students will struggle with and may need extra guidance to understand fully. In particular, we believe that students will struggle with understanding why you need to convert a string type variable to a number. Shouldn’t the computer just know that “9” means 9? You have to explain to them that it doesn’t. There are many different variable types: strings (text), integers (counting numbers and their negatives), floats (decimals) and boolean (True, False). The robot needs to be told what type of data it is dealing with so that it deals with it appropriately. In Choregraphe there is one more, “bang” that signals boxes to begin their function. Most other programming languages do not have this type.


Questions to Prompt Student Learning - Day 1
  • Break it down! What happens when the path splits?
  • What would happen if you showed the robot stegosaurus instead of a number card?
  • Can the robot pick a number, not between 1 and 10?
  • When does the program end?
  • What are the three possible outcomes when you play this game?
  • Play the number guessing game with a friend/peer. What do you think about when your friend guesses a number?



Resources:



Introduction
This game is a normal number guessing game. The robot will think of a number and you have to try to guess that number in as few tries as possible. Spend a few minutes playing this game with each other before you play with the robot.





PLAY THE GAME!

Read the questions on this page.

Play with the robot while it is running the example program (Number Game). As you interact with the robot, answer the questions below. Use complete sentences.


What does the robot say or ask?



What response did you give the robot?



How did the robot react to your response



What responses did you see other students give?


EXPLAIN THE GAME!


Write a description of the game in the space below. Describe everything you saw Nao do.
Use complete sentences.




First the robot...



Then...



Teaching Tips:



Explain the game! (10 minutes)

Students open the game file on their own computers and look through the code while answering questions on the Read The Code! page.

What do these do? (15 minutes)

In each lesson, there is one Black Box, a Choregraphe box that has an unknown function. These boxes are indicated by a "?" icon. Students must identify these boxes and list the inputs, outputs and deduce the function of this box in the What Do These Do? page. This is the central focus of learning in each lesson. Students must reason through the program to figure out what exactly these boxes do. They MUST understand the box before moving on to the next stage.

Discuss functions as a class. 



Leading the Discussion - Day 1

In general, students should be the main contributors to the discussion. As the teacher, you should ask questions to facilitate discussion and guide the discussion in the correct direction. Sample questions are provided below.

are some concepts in this lesson, however, that students will struggle with and may need extra guidance to understand fully. In particular, we believe that students will struggle with understanding why you need to convert a string type variable to a number. Shouldn’t the computer just know that “9” means 9? You have to explain to them that it doesn’t. There are many different variable types: strings (text), integers (counting numbers and their negatives), floats (decimals) and boolean (True, False). The robot needs to be told what type of data it is dealing with so that it deals with it appropriately. In Choregraphe there is one more, “bang” that signals boxes to begin their function. Most other programming languages do not have this type.



Questions to Prompt Student Learning - Day 1

  • Break it down! What happens when the path splits?
  • What would happen if you showed the robot stegosaurus instead of a number card?
  • Can the robot pick a number, not between 1 and 10?
  • When does the program end?
  • What are the three possible outcomes when you play this game?
  • Play the number guessing game with a friend/peer. What do you think about when your friend guesses a number? 


 



READ THE CODE!


Open the file NumberGame.pml. Read through the program and detail the function of each branch after the Wake Up  and Load Vision boxes.





Box 1 does...



Box 2 does...



The Animated Say at 3 says...


The three Animated Say boxes at 4 say:

Question 4.1:

Question 4.2:

Question 4.3:




 

WHAT DO THESE DO?


Look at the NumberGame.pml program and identify the "?" boxes. For each input/output port write its Name and Function.




Describe what the box does.

 


Teaching Tips:

Brainstorm (10 minutes)
Students brainstorm alternative uses of the new Black Box and write/draw their ideas on the Brainstorm! page. Give students 2-3 minutes to brainstorm silently. The have them discuss their ideas with a partner for 2-3 minutes and finally discuss ideas as a group for 5 minutes. This discussion method is called Think-Pair-Share.

Build it out (30 minutes)
Have the students pick one of their ideas and construct a full plan on the Build It Out! page.

Have the students carry out the plan by programming it on their own computers. They should test whatever they can on the virtual robot before running it on the real robot. 


Leading the Discussion
In general, students should be the main contributors to the discussion. As the teacher, you should ask questions to facilitate discussion and guide the discussion in the correct direction. Sample questions are provided below. There are some concepts in this lesson, however, that students will struggle with and may need extra guidance to understand fully. In particular, we believe that students will struggle with understanding why you need to convert a string type variable to a number. Shouldn’t the computer just know that “9” means 9? You have to explain to them that it doesn’t. There are many different variable types: strings (text), integers (counting numbers and their negatives), floats (decimals) and boolean (True, False). The robot needs to be told what type of data it is dealing with so that it deals with it appropriately. In Choregraphe there is one more, “bang” that signals boxes to begin their function. Most other programming languages do not have this type.


Questions to Prompt Student Learning (Day 2)

  • What do you want to happen first in your game? Then what?
  • What cards are you going to use in your game? 
  • What do you want the robot to say when she recognizes this card? 
  • Are you planning any custom movements, sounds or LEDs?

 

BRAINSTORM!


The Black Box 1 in this program is a Text to Number box.  It takes the text from the vision recognition box (the name of the card) and converts it into a number. 

The Black Box 2 is a Relation box. It determines if the top input is greater than, equal to or less than the bottom input.

In what other programs could these boxes be used? List as many ideas as you can think of! Write your ideas in the idea clouds below.
Your ideas can be words, sentences or drawings. Just make sure you can explain them!



 

BUILD IT OUT!



Choose one of your ideas from brainstorm and plan your program here.


The main idea for your game:

The rules are...


The robot will do...

Use a piece of paper to write what cards are you going to use and the reason why you choose those boxes



Then the human will..




Teaching Tips:

Reflect and Revise (15 minutes)
When students finish making their program, have them complete the Reflect and Revise! page. They should consistently reflect on their work and revise until they have a program that they are happy with (or they run out of time).

Today I learned... (5 minutes)
Have the students complete the Today I Learned... page. 


Leading the Discussion
In general, students should be the main contributors to the discussion. As the teacher, you should ask questions to facilitate discussion and guide the discussion in the correct direction. Sample questions are provided below. There are some concepts in this lesson, however, that students will struggle with and may need extra guidance to understand fully. In particular, we believe that students will struggle with understanding why you need to convert a string type variable to a number. Shouldn’t the computer just know that “9” means 9? You have to explain to them that it doesn’t. There are many different variable types: strings (text), integers (counting numbers and their negatives), floats (decimals) and boolean (True, False). The robot needs to be told what type of data it is dealing with so that it deals with it appropriately. In Choregraphe there is one more, “bang” that signals boxes to begin their function. Most other programming languages do not have this type.


Questions to Prompt Student Learning (Day 2)

  • What do you want to happen first in your game? Then what?
  • What cards are you going to use in your game? 
  • What do you want the robot to say when she recognizes this card? 
  • Are you planning any custom movements, sounds or LEDs?






AFTER CLASS

  • Save the students’ work on the flash drive.
  • Pack up everything (Check the packing instruction). 

 


DO, REFLECT & REVISE!


Build your program in Choregraphe.  When you test it, record what happens here.  

Reflect on what went right and what didn't go as planned.

Revise your program.  Plan what you need to change to make it better.


 
TODAY I LEARNED...

Answer the questions below.

What is the relation box and what does it do?

In the end, what did your program do?

If you could change one more thing about your program, what would it be?


 
AT THE END OF THE CLASS
 
  • Save your work on the flash drive from your teacher.
  • Help your teacher pack up everything with an extreme care when handling robots, computers, and routers.