Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more.

Please note: This theme has not been updated to reflect Scratch 3.0. Visit this help article for more info.

1. Depict & Deduce Introduction

Transcript

(upbeat folk playing)

Hello and welcome to day three of CS First social media.

Today, you will build a depict and deduce social media game while you learn about the computer science concept, conditionals.

Conditionals tell the computer to do an action if something is true or false.

In Scratch and many other programming languages, conditionals take the form of if statements.

If statements in Scratch have two parts; a condition and an action.

In Scratch, conditions look like pointy blocks.

Examples of conditions might include, if touching the color blue, if score equals 10, or if answer equals cat.

The actions inside the if statement will run only if the condition is true.

So you could fill in the second half of those examples with the action that should take place, if the condition is true.

Like if touching the color blue, then go to the middle of the stage.

Computer scientists use if statements all the time when they build social media platforms.

Take the mapping app, Waze, for example.

The Waze app allows user to communicate about current driving conditions including accidents, construction, and where police are located.

A feature in the Waze app might be programmed like this.

If the distance to a traffic accident is less than 10 miles, then alert the user.

If I'm driving and there aren't any accidents on the route, then my phone won't alert me.

But if there is an accident within 10 miles, then the Waze app will send an alert to my phone.

Social applications, like this, are programmed with many of the same computer science concepts that you're learning in this club.

Today, you will create a social media game kind of like the game Draw Something.

In the game, one player chooses something to draw and draws it.

Then, the second player guesses what the drawing is.

The game uses a type of if statement called an if-else statement to check if the players guess is correct.

If it is, the player is told that the answer is correct.

If the answer is wrong, the player can guess again.

This video will introduce how to open and remix the starter project and sign into Scratch.

To start, click the starter project link next to this video.

This will open Scratch in a new tab.

Sign in using the information from your passport.

Once you've signed in, you should see your username in the top right corner of the screen.

Click the remix button.

After completing these steps, click the green arrow to move onto the next video to learn how to make the pencil draw.

Now it's your turn.

Open the starter project using the link next to this video and sign in, click remix.

Next arrow_forward
Instructions
  1. Open the starter project.
  2. Remix the project.
  3. Sign in to Scratch.
Attributions
  • "Waze | App of the Week | Ting" by Ting (https://www.youtube.com/watch?v=I6S_xxCx1wo) -- Licensed by Creative Commons Attribution 3.0 Unported (https://creativecommons.org/licenses/by/3.0/legalcode) -- Video trimmed to needed length | Audio removed
  • "Waze logo.jpg" by waze Mobile (https://hu.wikipedia.org/wiki/F%C3%A1jl:Waze_logo.jpg) -- Licensed by CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/deed.hu)