Brian and Mary suggest dropping this page completely. --MF, 12/14/18

This will require adapting some of this content elsewhere (e.g., vocab topics); conditionals might go into 1.5. --MF, 12/14/18

Learning Player Names

BH/PG/AC/MF FP meeting (6/18/18):

Animation should be redone so that the name is added to the list before the greeting is said. Also, change the sprite costume so that it's not a child younger than our students. --MF, 6/18/18

Move this to U2 in place of 2.1.4, which should be junked except for the pieces that are needed for 2.2.3. --MF, 6/18/18

Brian wants to correct the definition of sequencing in the vocab box. --MF, 11/7/18

When we heavily revise this page, we are going to address AAP-2.G here with some TBD script much like we are now handling AAP-2.A in 1.3.1 #1. --MF, 12/17/18

PG: I absolutely cannot stand the costume. I know that's personal rather than logical, but it feels /so/ elementary school. At a logical level, I don't think /we/ should be making these choices at all. The PURPOSE (pink box) section should be about what kids will newly be able to do. I agree with Brian's one-time comment that "what you will learn" feels schoolish, but the idea of the section /for **us**/ was to focus on what new learning the lesson was about, and we can offer that to kids in a non-toxic way. The PURPOSE is not "so that first-timers get a different greeting." Machines can gather information, and that lets the programmer decide how to use it. The vocab section is too much, too early. Perhaps "condition." Not yet algorithm, selection, sequencing, ordering....

BH: I think this is the first use of a global variable, but with no explanation.

MF: several comments/discussions to resolve

On this page, you will create a greet player script that greets users and remembers their names so that first-timers get a different greeting from return visitors. greet player example

  1. Click here to load this file. Then save it to your Snap! account.
    It contains most of the code you'll need to make the script.
  2. Snap the pieces together in a sequence so that:
    1. The greeter will ask the player for their name.
    2. If the player's name is in the player list,
      • Say "nice to see you again, player name."
    3. Otherwise, when the player isn't on the list,
      • Say "nice to meet you, player name," and
      • Add the player's name to the player list.
  3. Test and debug. Make sure the script works the way you want it to.
: Selection, Conditionals, and Sequencing 
  1. Create a greet player block command block, and drag in your working script.
  2. Click greet player several times to test that it works as expected. Fix any bugs.
  3. Save. You will use this later.