Coding in school, Std by Std. Tap blocks or type real commands, and watch your program draw, move and play. It all runs inside this page: no installing, no internet needed.
๐จ Open the playground ๐ฑ Scratch projects ๐ฎ Coding gamesDecomposition: split a problem you cannot solve into parts you can.
Start โ Lesson 2An algorithm is a general recipe: repeat n times, go forward, turn 360 divided by n.
Start โ Lesson 3Repeated addition inside a loop builds a sequence, and you can predict it before you run it.
Start โ Lesson 4A variable can hold the state a program is in, and conditions decide how it behaves in each state.
Start โ Lesson 5A block built from a block built from a block: self-similar patterns from three tiny definitions.
Start โ Lesson 6Languages differ in punctuation, not in ideas: a loop is a loop everywhere.
Start โDesign a logo. Decompose it into parts first, write one block per part, and keep every block short enough to test on its own. Join them only at the end, and you will know exactly where to look if something is wrong.
Build it โProjectDraw a board for a game you invent: snakes and ladders, a maze grid, or a race track. Use loops for the rows, a variable for the square size, and a condition to colour alternate squares. Then write the rules of your game on paper.
Build it โa star in the middle of a run splits that run into two repeats
Play โMazepar 7a loop inside a loop: the inner loop walks two squares, the outer loop repeats the whole step
Play โMazepar 15an outer loop can repeat a whole journey that already contains loops of its own
Play โ Bug huntA spiral whose sides get longer as it turns.
Fix it โBug huntA flower of six petals, drawn with your own block.
Fix it โ Drawโ โ โ โDraw this picture: twelve squares turned around the same centre, with a ring of dots outside them.
Draw it โDrawโ โ โ โ โDraw this picture: a snowflake with six arms, each arm carrying two small twigs.
Draw it โ