What does simulation mean?
A model of the real thing, run on a computer, that behaves closely enough to test programs on. The mat and robot on this page are a simulation of a BugBot.
In a lesson
Leave out the first and Python stops at the first command with
NameError: name 'forward' is not defined: the commands do not exist. Leave out the second and the simulator still runs, because its robot is always there, but a real BugBot has no link to send the commands down. Keep both lines in every program.
Learn it
- Taught in F1.1 What a program is Programming basics, GCSE
Used in
- F1.3 Calling functions
- F2.6 Condition-controlled loops: while
- F4.4 Decomposition and abstraction
- F5.4 Trace tables
- F6.6 The IDE
- F12.4 Copyright and licences
- 0.1 Your first program
- 1.1 Your first move
- 1.2 Driving by distance
- 1.6 Project: draw a letter
and 42 more lessons.
Do the lesson in the simulator