← EL GREC GAMES

CODING PUZZLE

PyBot Quest

PyBot Quest is a coding puzzle game: you program a robot with real Python lines and watch it run. Five worlds, 24 levels — sequence, loops, decisions, variables and a debug boss — built for grades 6–8. No account, no downloads — just pick a level and code.

▶ Play PyBot Quest

How to play

Pick a level and build the program that gets PyBot to the goal. Tap a block in the palette to add its line, or switch to Type mode and type the lines yourself. Press RUN CODE and watch PyBot execute it — the running line highlights as it goes, the loop counter counts each pass, and the gems panel tracks what you have collected. Collect every gem, then reach the goal tile.

PyBot only understands a small set of commands: move(), turn_left(), turn_right() and collect() — plus at_goal(), path_blocked() and has_gem() for decisions. If PyBot bumps a wall, the run ends and you retry — nothing is lost. A run also stops if it goes on too long, so a loop that never ends cannot run forever.

Use Step to run one line at a time when a run fails, 1x / 2x to change the speed, and Reset to clear the run. The Blocks toggle shows the same program as Word Blocks — the code underneath stays real Python. Hints, goals and breakdowns can switch to Spanish; the code itself stays in English Python. Press Esc to pause — the pause menu offers Resume, Restart, Main Menu, and Back to Hub — the hub link is also on the home screen.

Game mechanics explained

Each world teaches one idea. Sequence is plain lines in order. Loops repeat with for _ in range(n) — the classic square drive is for _ in range(4): move(); turn_right(), four sides, four right turns. Decisions use if / else with path_blocked() and has_gem(), and while not at_goal() for walking until you arrive. Variables & Functions store numbers like steps = 3 and bundle moves into def patrol(), which you can call again and again. Debug Boss hands you a broken program — find the bugs and fix them; the failed run shows you exactly where it went wrong.

Every level has a par — the fewest lines that solve it. Finish at par for 3 stars; finish with extra lines for fewer. Stars save on your device, so your progress survives reloading the page. The hint on each level asks guiding questions rather than handing you the answer.

High score tips

Questions players ask

Do I need to know Python already?
No. The palette teaches it one idea at a time — each world introduces a single new concept, and the Blocks toggle shows every program as blocks too.

Is it real code or just blocks?
Real Python lines. You can snap them from the palette or type them in Type mode, and the program that runs is the code you wrote.

What happens if PyBot hits a wall?
The run stops and you retry. Nothing is lost — your program stays on screen, so you can fix the line and run it again.

Do my stars save?
Yes, on your device. They survive reloading the page.

Can I play in Spanish?
Yes — the hints, goals and breakdowns switch to Spanish from the toggle. The code itself stays in English Python.

Do I need an account?
No. Just pick a level and code.