🚗 Code Your Robot Car

Type simple Python-like commands and run them on your robot.

Python Code

Ready
Allowed commands:
forward() back() left() right() pivotLeft() pivotRight() readDistanceCM() stop() sleep(1) speed(150) beep() lights(255,0,0) rainbowCycle(2) hazardEffect() policeEffect() showActionLED() policeSiren() ambulanceSiren() fireTruckSiren() carHorn() truckHorn() reverseBeep() machineGun() runExpression("cry") runExpression("laugh") runExpression("worry") runExpression("think") runExpression("sleep") runExpression("angry") runExpression("surprise")

Loops:
repeat(4):

Example:
repeat(4):
  forward()
  sleep(1)
  right()
  sleep(0.6)
stop()

Sample Programs

Output

Ready
Expected robot endpoints:
/forward /back /left /right /stop /beep /speed?value=150 /color?r=255&g=0&b=0