Debugging the Game

Rubber Duck Debugging is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug his code by forcing himself to explain it, line-by-line, to the duck

Techniques to use to debug

use logical thinking in this process

change just one input (or line ofcode) to see whether outputs change as predicted.

It’s possible that you encounter problems that are caused by limitations of J2Code itself – if this happens,think of ways of working around the problem to avoid the limitation.

Debug means fixing your mistakes

Is the mistake in your algorithm?

or...

Have you just gone about it the wrong way?

Task.

Debug this algortihm that is supposed to draw a letter T.

It's broken.

Debug and fix.