Block coding for kids
Block coding lets you write real programs by snapping blocks together, with no typing mistakes. The ideas are the same as in Python, JavaScript and C++, so it is the perfect first step.
The six big ideas
- Events: a hat block like when ▶ Run clicked or when button A pressed starts a script.
- Sequence: blocks run from top to bottom, one after another.
- Loops: repeat 10 runs blocks a number of times; forever keeps going.
- Conditions: if … then … else decides what to do, for example if touching edge.
- Variables: a named box that remembers a value, like score.
- Messages: broadcast and when I receive let sprites take turns.
Your first animation
- Open TinkerPie Blocks. From Events, drag when ▶ Run clicked.
- From Control, snap forever under it.
- From Motion, put move 10 steps and if on edge, bounce inside.
- Press Run. Then try changing 10 to 5 or 20.
See the text code
Press Show Code to see your blocks as Python and as Arduino C++ for the TinkerPie V1 board. Reading both is the easiest way to move from blocks to typing code.
Program the real board
The red TinkerPie blocks control the LED matrix, buttons, light and temperature on the board under the stage. Press Upload to open the program in Hardware Programming. For robots and AI, use Robotics & AI.
Stuck? Press Buddy: it checks your blocks and answers questions.
More guides: Learn with TinkerPie.