Playground

Your Guide to Building Real Programs ๐Ÿš€
โœจ For Ages 7 to 14 โœจ
๐ŸŸข Start
๐Ÿ’ฌ Say
๐Ÿ” Repeat
๐Ÿ“ฆ Set
๐Ÿ”€ If / Else
๐Ÿšถ Move
๐ŸŒŸ
Welcome to Playground!
Here's everything you need to know to start building
๐Ÿงฑ

Blocks are your tools

Every instruction in your program is a colorful block. Drag them onto the canvas to build!

๐Ÿ”—

Snap them together

Blocks connect like puzzle pieces. Drag one close to another and they'll snap together automatically.

โ–ถ๏ธ

Press Run to go!

When your blocks are connected, press the Run โ–ถ button and watch your program come to life.

๐Ÿ’ก

The Code Panel shows your work

On the right side of the screen, you can see your program written out in real code โ€” automatically!

โญ
Every program needs a ๐ŸŸข Start block at the top and a ๐Ÿ”ด End block at the bottom. Think of them like the covers of a book โ€” your program lives in between!
๐Ÿ–ฅ
The Playground Screen
Let's explore what everything does
Block Palette
๐ŸŸข Start
๐Ÿ’ฌ Say
๐Ÿ” Repeat
๐Ÿ“ฆ Set
...more blocks!
Canvas โ€” Build Here! ๐ŸŽจ
๐ŸŸข Start
๐Ÿ’ฌ Say "Hello!"
๐Ÿ”ด End
Code Panel
start
  say "Hello!"
end
๐Ÿ‘ˆ Drag blocks from here
Drop them here and connect them!
Your code appears here โœจ
๐ŸŽฎ
Control Blocks
Every program needs these two!
๐ŸŸข Start
Start Free
The beginning of your program
The Start block is where your program begins. Every program must have one. It's like pressing the "go" button โ€” when you run your program, it starts right here and works its way down through all your blocks.
๐Ÿ’ก Think of it like: The first page of your story. Everything begins here!
๐Ÿ”ด End
End Free
The finish line of your program
The End block tells your program to stop. Every program needs one at the very bottom of your block chain. Without an End block, Playground won't know where your program finishes!
๐Ÿ’ก Think of it like: The last page of your story. This is "The End!"
๐ŸŸข Start
๐Ÿ’ฌ Say Hello World!
๐Ÿ”ด End
start
  say "Hello World!"
end
๐Ÿ’ฌ
Talk & Ask Blocks
Make your program speak and listen!
๐Ÿ’ฌ Say
Say Free
Print words to the screen
The Say block makes your program print words in the Output box. Type anything you want in the white box โ€” your program will show it when it runs! You can also use a variable by typing $name (with a dollar sign) to show what's stored in that variable.
๐Ÿ’ฌ Say
โ†’ prints: Hello!
๐Ÿ’ฌ Say
โ†’ prints: Hi Alex!
๐ŸŒŸ Try it! Type your own name in the box and run it. Your program just said your name!
โ“ Ask
Ask Starter
Ask the user a question and remember the answer
The Ask block pauses your program and pops up a question for the user to answer. Whatever they type gets saved into a variable so you can use it later. The first box is the variable name (where to save the answer), and the second box is the question to ask.
Example โ€” Greeting Program
๐ŸŸข Start
โ“ Ask name "What is your name?"
๐Ÿ’ฌ Say "Hi $name! Welcome!"
๐Ÿ”ด End
๐Ÿ’ก Remember: The dollar sign $ in front of a word means "show the value stored in this variable." So $name shows whatever name the user typed!
๐Ÿ”
Loop Blocks
Do things over and over without repeating yourself!
๐Ÿค”
Imagine you want to say "Hello!" 100 times. Would you drag 100 Say blocks? No way! That's what loops are for โ€” they let you do something many times with just one block!
๐Ÿ” Repeat times
drag blocks here
Repeat Free
Do something a set number of times
The Repeat block runs everything inside it a certain number of times. Change the number to control how many times it repeats. The special variable $count tells you which time you're on (1, 2, 3...).
Example โ€” Count to 5
๐ŸŸข Start
๐Ÿ” Repeat 5 times
๐Ÿ’ฌ Say $count
๐Ÿ”ด End
Output: 1 2 3 4 5
๐ŸŒŸ Super power: Use $count inside a Repeat block to know which round you're on!
โ™พ Forever
drag blocks here
Forever Starter
Keep going until you stop the program
The Forever block loops endlessly โ€” it never stops on its own! It's perfect for animations and games where you want something to keep happening. Use it with a Wait block to create smooth animations.
โš ๏ธ Heads up! Forever loops never end by themselves. Press the Stop button to end your program!
๐Ÿ”€
Decision Blocks
Let your program make choices!
๐Ÿค–
Programs aren't just one straight path โ€” they can make decisions! "If the score is high, say congratulations. Otherwise, say try again!" That's what If/Else does.
๐Ÿ”€ If
โœ… if true โ†’ blocks here
else
โŒ if false โ†’ blocks here
If / Else Starter
Do one thing or another based on a condition
The If / Else block checks a condition. If the condition is true, it runs the blocks in the top section. If the condition is false, it runs the blocks in the bottom section. You only ever run one or the other โ€” never both!
๐Ÿ” Condition examples:
$score > 10
$name == "Alex"
$count >= 5
$lives > 0
Example โ€” Guess the Number Game
๐ŸŸข Start
โ“ Ask guess "Guess a number 1-10:"
๐Ÿ”€ If $guess == 7
๐Ÿ’ฌ Say "๐ŸŽ‰ You got it!"
else
๐Ÿ’ฌ Say "โŒ Wrong! It was 7"
๐Ÿ”ด End
๐Ÿ“ฆ
Variable Blocks
Store and change information in your program
๐Ÿ“ฆ
Think of a variable like a labeled box. You can put a number or word in the box, check what's inside anytime, and swap it out for something new. Name your box anything you want โ€” like score, lives, or name!
๐Ÿ“ฆ Set to
Set Starter
Create a variable or change its value
The Set block creates a variable (or updates it). The first box is the name of your variable, and the second box is what you want to store in it. You can store numbers or words!
๐Ÿ“ฆ Set to
โ†’ score = 0
๐Ÿ“ฆ Set to
โ†’ player = "Alex"
โž• Change by
Change Starter
Add or subtract from a variable
The Change block adds a number to your variable. Use a positive number to go up, or a negative number to go down. Great for score counters and countdown timers!
โž• Change by
โ†’ score goes up by 10
โž• Change by
โ†’ lives goes down by 1
๐ŸŽฎ Game tip: Use score and lives variables with Change blocks to build a real game!
๐Ÿšถ
Motion Blocks
Move your sprite around the stage!
๐Ÿข
The sprite is the character on your stage โ€” like a little turtle. Motion blocks tell it where to go. Combine motion with the Pen Down block and your sprite draws as it moves!
๐Ÿšถ Move steps
Move Starter
Moves the sprite forward. Bigger numbers = more movement!
โ†ฉ Turn ยฐ
Turn Starter
Spins the sprite. 90ยฐ = quarter turn. 180ยฐ = U-turn. 360ยฐ = full circle!
๐Ÿ“ Go To x y
Go To Starter
Teleport the sprite to exact coordinates. (0,0) is the center of the stage.
Example โ€” Draw a Square! ๐ŸŸฅ
๐ŸŸข Start
โœ Pen Down
๐Ÿ” Repeat 4 times
๐Ÿšถ Move 100 steps
โ†ฉ Turn 90 ยฐ
๐Ÿ”ด End
Result: A perfect square drawn on the stage! ๐ŸŽจ
โœ
Drawing Blocks
Paint with your sprite!
โœ Pen Down
Pen Down Starter
Puts the pen on the paper! Your sprite will draw a line as it moves.
โœ‹ Pen Up
Pen Up Starter
Lifts the pen up. Your sprite moves without drawing.
๐ŸŽจ Set Color
Set Color Starter
Changes the pen color! Try: red, blue, #ff6600
๐Ÿงน Clear Stage
Clear Stage Starter
Wipes everything off the stage like an eraser. Start fresh!
๐Ÿ‘€
Looks Blocks
Control how your sprite appears!
๐Ÿ—จ Say
Say Bubble Starter
Shows a speech bubble above your sprite on the stage โ€” like a comic book!
๐Ÿ‘ Show Sprite
Show / Hide Starter
Make your sprite appear or disappear from the stage. Great for magic tricks!
๐Ÿ”ง
Function Blocks
Give your favourite block groups a name and use them anywhere!
๐Ÿงฉ
Imagine you keep using the same 5 blocks over and over. Instead of doing that, you can wrap them up, give them a name, and just call that name whenever you need them. That's a function!
๐Ÿ”ง Define
drag blocks here
Define Builder
Create a named group of blocks
The Define block lets you create your own custom block! Give it a name and fill it with whatever blocks you want. Place it on the canvas separately from your main program.
๐Ÿ“ž Call
Call Builder
Run your custom block
The Call block runs your defined function. Just type the same name you used in Define. You can call it as many times as you want!
Example โ€” Use a function!
DEFINE (place separately on canvas):
๐Ÿ”ง Define celebrate
๐Ÿ’ฌ Say "๐ŸŽ‰ Hooray!"
๐Ÿ’ฌ Say "You did it!"
MAIN PROGRAM:
๐ŸŸข Start
๐Ÿ“ž Call celebrate
๐Ÿ“ž Call celebrate
๐Ÿ”ด End
Runs "celebrate" twice without repeating all those blocks!
๐Ÿ”ข
Reporter Blocks
Little blocks that calculate values for you!
๐Ÿงฎ
Reporter blocks are small, rounded blocks that calculate something and plug the answer right into another block. Drag them into the input boxes of other blocks โ€” they snap right in!
Math Reporters Starter
5
+
3
10
-
4
6
ร—
7
20
รท
4
random
1
to
10
Drag these into the input of a Say block, Set block, or If condition. For example, drag a random reporter into a Say block to print a random number!
๐ŸŽฒ Fun idea: Use random 1 to 6 inside a Set block to make a dice roller!
Text Reporters Starter
join
Hello
World
length of
text
Join two words together or count the letters in a word. Great for building messages!
๐Ÿ
Event Blocks Pro
React to clicks, keypresses, and messages!
๐ŸŽฎ
Events let your program react to things happening โ€” like pressing a key or clicking the sprite. Instead of just running from top to bottom, your program can respond in real time. This is how games work!
๐Ÿ When Flag Clicked
When Flag Clicked
Starts when you press the โ–ถ Run button. Works like Start but for event-style programs.
โŒจ๏ธ When Pressed
When Key Pressed
Runs when you press a specific key. Use space, ArrowLeft, a, b...
๐Ÿ–ฑ๏ธ When Sprite Clicked
When Sprite Clicked
Runs when the user clicks on the sprite on the stage.
๐Ÿ“ข Broadcast
Broadcast + Receive
Send a message to another chain of blocks! Use Broadcast to send, and When I Receive to listen. Lets two chains talk to each other.
๐Ÿ—‘
Removing Blocks
Two easy ways to delete blocks you don't need
๐Ÿ–ฑ๏ธ โœ•
Method 1 โ€” The โœ• Button
Hover your mouse over any block and a small โœ• button appears in the top-right corner. Click it to delete just that block. Clean and easy!
๐Ÿ’ฌ Say Hello! โœ•
โ† hover to see the โœ•
๐Ÿ—‘๏ธ ๐Ÿ‘‹
Method 2 โ€” Drag to Trash
Drag any block to the ๐Ÿ—‘ Delete Zone in the bottom-right corner of the canvas. When it glows red, let go! Warning: this also deletes all blocks connected below it!
โš ๏ธ Careful! The โœ• button only removes ONE block. Dragging to trash removes it AND everything below it.
๐Ÿš€
You're ready to build! Start with a simple program โ€” make it say your name, ask a question, or draw a shape. Then keep adding blocks and see what you can create. There are no wrong answers in Playground โ€” just experiments! ๐ŸŽ‰
Open Playground โ†’ Start Building! ๐ŸŸข