Game Development Reference
In-Depth Information
4 - Guess the Number
Figure 4-4: The tracing web page.
The left side of the web page shows the source code, and the highlighted line is the line
of code that is about to be executed. You execute this line and move to the next line by
clicking the "Next" button. You can also go back a step by clicking the "Previous" button,
or jump directly to a step by typing it in the white box and clicking the "Jump" button.
On the right side of the web page, there are three sections. The "Current variable values"
section shows you each variable that has been assigned a value, along with the value itself.
The "Notes" section will give you a hint about what is happening on the highlighted line.
The "Program output" section shows the output from the program, and the input that is sent
to the program. (This web page automatically enters text to the program when the program
asks.)
So go to each of these web pages and click the "Next" and "Previous" buttons to trace
through the program like we did above.
A video tutorial of how to use the online tracing tool is available from this topic's
website at http://inventwithpython.com/videos/.
Search WWH ::




Custom Search