Skip to content

Please update your browser

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

Transcript

When people and organizations share information in the professional world, they use non-disclosure agreements to protect their ideas. While sharing is important in computer science, sharing an idea before you develop or use it might lead someone else to use it before you do.

In this add-on, you’ll ask the audience to agree to not share any of the ideas in your story with other people. This is not a legally binding agreement, but the code you’ll use to create it is similar to the code that a company might use on its website.

To start, select the sprite narrating your story. Use some "say for 2 seconds blocks" to write a disclaimer. In this example, the sprite says, “The ideas and opinions expressed in this project are owned by csf123. Sharing the ideas in this project is strictly prohibited.”

Now that you have a disclaimer, ask the user to agree not to share your idea. Click sensing and drag out an ask block. Add your question text, like, “Do you agree not to share this innovation with other people?” Click this block stack to test it.

Great, the sprite says the disclaimer, asks the question, and a prompt pops up where users can type their answer. If the answer is yes, then the program should run normally, if they type anything else, the program should stop.

Drag out an if/else block. As the condition, put an equals operator, the answer variable from sensing, and type “yes” as the other value.

This now reads, if the answer equals yes, then...

If the answer is yes, the program should run normally. Add this code below the green flag.

Place the "broadcast" and "wait" blocks that are already in your project in the “then” portion of the block. Click the flag to test this.

Enter “yes” as the answer.

The program works, great! Next, add a "say" block to the "else."

If people don’t say yes, the program can respond with something like “Ok, thanks for your honesty!”

Test this now with something like “no.”

The program says the message, then does not show the innovation! Great. Now it’s your turn to protect your innovation: Add a disclaimer using "say for 2 seconds" blocks.

Ask the user to keep your ideas confidential with an “ask” block Decide what to do based on the users’ answer with an "if/else" block, an "equals" operator, and an "answer" block.

Choose an Add-On
Scene Change
Change the setting of your pitch for each part of the story.
Innovation Redesign
Customize the costume of your sprite to better match your vision.
Fireworks
Add a fireworks sprite to your backpack, then add it to your program, and decide when to run its code.
Protect Your Idea
Ask the audience to agree to not share any of the ideas in your story with other people.
Building Volume
Add a song to your story and control its volume based on which part of the story is being told.
Add Interactivity
Make the end of your pitch interactive by asking the audience a question and responding accordingly.
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!