I see a darkness.
—Will Oldham, also performed by Johnny Cash
In the previous three chapters, we have seen a zoo of program errors and the defects causing them. We have learned about error propagation and the scientific method as a general approach to eliminate bugs. How can we put this knowledge into practice? In this and the following chapters, we will gather tools to diagnose programs in order to find defects. In this chapter, we start with a very simple yet powerful diagnostic tool: print.
The code we will diagnose is drawing the in-game graphics. We will draw the mazes we generated ...