BUG
DETECTIVES
find the bug · fix the code · reach the star
WHAT IS A BUG?
Computers do EXACTLY what we tell them...
even when we are wrong!
A BUG is a mistake in the instructions.
DEBUGGING means finding it and fixing it.
THE DETECTIVE METHOD
1
PREDICTWhat SHOULD
the alien do?
2
TESTGo one step
at a time.
3
FIXChange ONE thing,
then test again.
THE ALIEN'S CODE · CLICK AN ARROW TO CHANGE IT
PREDICTwhat should happen?
TESTone step at a time
FIXchange one thing
CASE CLOSED!
all bugs squashed · nice detective work!
So... what will YOU do next time
your game or code breaks?