MindBlock Play

Learn Python by coding a 3D robot

Level 1 Off to the Lighthouse >_ Python Run

Program

when Run is pressed
move forward 60 cm
turn left 90 °
repeat 2 times
move forward 20 cm

Level complete!

repeat: try and improve

How the robot simulator works

Three steps, like a real engineer: pick the mission, code and test.

  1. Pick a challenge

    Each level is a mission on a track: reach the lighthouse, push a box, follow a line…

  2. Program the robot

    Snap blocks together or write Python. Distances in centimeters and turns in degrees, like a real robot.

  3. Watch it solve it

    The robot runs your program with 3D physics. If it fails, you tweak it and try again.

Didn't make it? Change a block and press Run again.

learn by playing

What you will learn

The same ideas engineers use, one per challenge.

  • Sequences

    Giving instructions in the right order.

  • Loops

    Repeating without writing the same thing twice.

  • Conditions

    Deciding based on what happens.

  • Sensors

    Seeing colors, lines and obstacles.

  • Debugging

    Finding the mistake and fixing it.

  • Python

    Real code, like programmers write.

import python

From blocks to real Python

The same challenges can be solved with blocks or with a Python editor like the ones programmers use: files, a terminal, explained errors and a dictionary of functions.

  • Files
  • Terminal
  • Explained errors
  • Function dictionary
Try it with Python
Tu taller de robots

Build your own robot

Design your robot piece by piece and take it to the track.

  • Pick the partsMotors, wheels, sensors or legs.
  • Wire them to the brainAnd take it to the track.
  • See what's wrongIf it falls over or won't turn, the simulator tells you why.
Armar mi robot
no distractions

Made for learning

A place to code, with no distractions.

  • No ads

    Nothing to distract from the challenge.

  • No chat with strangers

    Here you code, not chat with strangers.

  • Any device

    Computer, Chromebook or tablet, right in the browser.

  • In your language

    10 languages, including right-to-left Arabic.

questions

Frequently asked questions

Do I need to install anything?

No. MindBlock Play runs in the browser, on a computer or a tablet. All you need is an internet connection.

Do I need to know how to code?

No. The first level is solved with a single block, and each challenge teaches something new, with hints.

Do I need to create an account?

Crea tu cuenta gratis para guardar tus robots y continuar tu colección.

What languages is it in?

English, Spanish, Portuguese, French, German, Mandarin Chinese, Japanese, Indonesian, Arabic and Swahili.

Will you code me?

Ready to code your first robot?

Start for free in under a minute.

Play for free