Lesson 13

blue and white striped round textile
blue and white striped round textile

Learning Goal: Students will be able to create a program that accepts and displays user input and shows a randomly generated computer response.

Review vocabulary from previous lessons

Learning Objectives
Students will know how to:

  • Use .ask() to collect and store user input

  • Use user input in conditionals to control the creation of sprites that match user input

  • Generate random numbers and use them to create an automatic "opponent"

  • Use random numbers in conditionals to create sprites based on the random number

Today I will…

  • use user input to store and code a user's response

  • display the results of the player's choices

  • use a random number generator to create an automatic "opponent." and display that random choice as a picture

  • add instructions to the stage before the game begins