Skip to content

Please update your browser

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

1. Depict & Deduce Introduction

Transcript

Hello, and welcome to Day 3 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 action 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 users 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 ten miles, then alert the user."

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

But, if there is an accident within ten 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 player’s guess is correct.

If it is, the player is told 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 in to Scratch.

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

This will open Scratch in a new tab.

Click the remix button, and sign in using the information from your passport.

Once you’ve signed in, you should see your user name in the top right corner of the screen.

After completing these steps, click the green arrow to move on to 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.

Click remix, and Sign in.

Next arrow_forward
Instructions
  1. Open the starter project.
  2. Remix the project.
  3. Sign in to Scratch.