Simulator¶
A BugBot on its mat, in 3D, in your browser, driven by your code. The simulator runs the same bugbot API as the real robot, so a program that works here works on the robot, and the other way round.
How it works¶
Your program runs to completion against a simulated robot, then the run plays back in the 3D view at real speed. Blocking calls such as wait, forward(distance=...) and turn move the simulated clock; distance(), position() and the other sensors read the simulated world. The run is deterministic: the same program on the same task always gives the same result, so results can be compared fairly.
The simulated robot is not perfect on purpose. Like the real one, its motors do not all pull the same, a little rotation leaks in when it drives straight, and it coasts briefly after stop(). The numbers are measured from real BugBots on the mat.
Tasks¶
Pick a task from the menu: every task from every lesson is there, grouped by module, with the lesson's starter program. A task is a start position, obstacles, zones and a goal, and the checker tells you whether you passed and why not if you didn't. The program you had open in each task, and your best result, are saved in your browser.
Free play¶
The Free play task has no goal: an empty mat to try things on.