Skip to content
KBHXgamesAll games

Play Robot Coder Online

A plan-ahead coding puzzle: write the robot's whole program, press play and hope every step is right.

Robot Coder gameplay screenshot
  • Touch-ready

Robot Coder at a glance

Genre
Puzzle Games
Play with
Keyboard, Mouse, Touch screen
On phones
Yes, touch works
Players
1 player
Price
Free, no sign-up
License
Apache-2.0

Robot Coder is a small programming puzzle that rewards careful planning. A robot sits on a grid next to colored items and matching colored targets. You write the robot’s whole program before it moves, then press play and watch it go. It is a friendly way to learn how code runs step by step, and it was made for js13kGames 2018, so it loads in a flash.

The Goal

Deliver every item to a target of the same color. The robot can carry only one item at a time, but it may set one down on an empty square and pick it up later. The menu opens with three tutorials, then four themed groups with 21 more levels unlock as you go.

How a Round Plays Out

  1. Build a row of commands. A green arrow steps forward, curved arrows turn left or right, and blue arrows take or drop an item.
  2. The robot always acts on the square right in front of it, never the one it stands on.
  3. Wrap part of the program in a loop to repeat it two to nine times.
  4. Press play. The robot runs the program from start to finish.
  5. A run fails if the robot drives into a wall, item or target, takes from an empty square, drops in the wrong spot or stops with targets left.
  6. A message explains the failure, and reset puts the board back.

A speed slider next to play lets you slow the run, and the current command lights up as it runs.

Keys and Buttons for Robot Coder

Keyboard, mouse and touch controls for Robot Coder
What you do⌨ Keyboard🖱 Mouse👆 Touch
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

Winning Strategies

  • Count squares before typing. Trace each path on the board, and remember the robot must face the item, not stand on it.
  • Track your heading. A pair of same-side turns leaves the robot pointing backward.
  • Use parking spots. Dropping an item on a free square for later can open an otherwise blocked path.
  • Debug at low speed. Slow the run and watch the highlighted command to find the exact step that fails.
  • Solve first, shrink second. Get any working program, then swap repeated steps for loops to earn stars.

Common Mistakes

  • Placing a turn one step too early or late.
  • Forgetting the robot can hold only one item.
  • Driving forward onto a target square, which counts as a crash.

Who Should Play It

Robot Coder is great for kids and adults who are curious about coding, and for anyone who likes careful planning puzzles. If you enjoy block-based coding games or turn-based logic mazes, this one makes a nice next step.

Played and checked by the KBHX Games team · updated

Robot Coder: Questions and Answers

Can I change Robot Coder's program while it is running?

That limit is the whole puzzle. After play is pressed, every command executes in order. Cancelling is allowed, editing mid-run is not, so careful planning beats trial and error.

What do checkmarks and stars mean?

Each stage lists a goal size for your code. Solving earns a tick, matching the goal earns one star and going under it earns two. Loop brackets add to the size too, so they pay off on long, repetitive routes.

How do I open the level editor?

Beat any five stages and a builder shows up at the foot of the menu. Pick a grid as large as 10 by 10, lay out walls, items, targets and a starting square, then try your creation.

Will Robot Coder work on a phone?

It does. Each command sits on its own tappable button, and the layout stacks the grid above the keypad, which suits a handset in portrait mode.

If You Liked Robot Coder, Try These