Robot Coder Unblocked

Play Robot Coder online for free in your browser. No download, no sign-up.

Robot Coder gameplay screenshot
  • Works on mobile
Report a problem

Robot Coder is a small programming puzzle about planning ahead. A robot stands on a grid with colored items and matching colored targets. You write its entire program first, then press play and watch. While it runs, you cannot steer it or change a step. If you miscount one move, it bumps into a wall and you start over. The game was made for the js13kGames 2018 contest, so the whole thing fits in a tiny download.

How to Play Robot Coder

Your program is a row of symbols. A green arrow moves the robot one square forward, the curved arrows turn it left or right, and the blue up and down arrows take or drop an item. The robot always works on the square right in front of it. It picks up the item there, or drops what it carries onto that square.

To finish a level, bring every item to a target of the same color. The robot can hold only one item at a time, but it can set one down on an empty square and grab it later. A run fails if the robot drives into a wall, item or target, tries to take from an empty square, drops in the wrong place, or stops with targets left. A message tells you what went wrong, and the reset button puts everything back.

Loops make code shorter. A loop wraps part of your program and repeats it two to nine times, so four forward steps can become one loop. The menu starts with three tutorials, then opens four themed groups with 21 more levels as you solve puzzles.

Robot Coder Controls

Controls for Robot Coder
ActionKeyboardMouseTouch
Add a step forwardUnderscore (_)Click the forward arrow keyTap the forward arrow key
Turn left or right< or >Click a turn keyTap a turn key
Take or drop an itemUp arrow (take), Down arrow (drop)Click the up or down arrow keyTap the up or down arrow key
Add a repeat loopType a number from 2 to 9, then + or - to change itClick the loop key, then plus or minusTap the loop key, then plus or minus
Move the cursor or deleteLeft/Right arrows, Home, End, BackspaceClick the left, right or delete keysTap the left, right or delete keys
Run the robotEnterClick the play buttonTap the play button

Tips and Strategies

  • Trace the route on the board first. Count the squares to each item before you type, and remember the robot needs to face the item, not stand on it.
  • Watch the turn direction. A left turn rotates the robot on the spot, so after two turns it faces the other way.
  • Park items to save trips. Dropping an item on a free square and fetching it later can open a path that is otherwise blocked.
  • Slow it down to debug. The slider beside the play button changes the speed, and the highlighted symbol shows which step is running.
  • Shorten after you solve. Get any working solution first, then replay the level and replace repeated moves with loops to earn stars.

Features

  • 24 levels plus an editor: tutorials, themed level groups and a builder for your own maps.
  • Two ways to type: an on-screen command pad or your real keyboard.
  • Saved scores: your shortest solution for each level stays in your browser.
  • Sound toggle: simple beeps for moving, turning, picking up and winning, with a mute button.

Tested and updated:

Robot Coder Unblocked: FAQ

Why can't I stop the robot and fix my code halfway?

That is the whole idea. Once the robot starts, it runs your program to the end. You can cancel the run, but you cannot change a single step while it moves, so you have to think through the route first.

What do the stars in the level list mean?

Each level has a target length for the program. A checkmark means you solved it, one star means your code was as short as the target, and two stars mean you beat it. Loops count as characters too, so they help most on long, repeating routes.

How do I unlock the level editor?

Solve five levels. The editor then appears at the bottom of the menu, where you can set a map size up to 10 by 10, place walls, items, targets and a start spot, and play your own puzzle.

Does it work on a phone?

Yes. Every command has an on-screen key, so you can build programs with taps alone. The board and keys sit in one column, which fits a phone held upright.

More Free Games to Play Online