Learn Python The Hard Way | Page 6

Not Available
. . . . . . . . . . . . . . . . . . . . . .125
Exercise 41: Gothons From Planet Percal #25127 What You Should See. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132
Extra Credit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134
Exercise 42: Gothons Are Getting Classy135 What You Should See. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140
Extra Credit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140
Exercise 43: You Make A Game143
Exercise 44: Evaluating Your Game145 Function Style. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .145
Class Style. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
Code Style. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
Good Comments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
Evaluate Your Game. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
Exercise 45: Is-A, Has-A, Objects, and Classes149 How This Looks In Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .150
Exercise 46: A Project Skeleton153 Skeleton Contents: Linux/OSX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .153
Testing Your Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155
Using The Skeleton. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155
Required Quiz. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156
Exercise 47: Automated Testing157 Writing A Test Case. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157
Testing Guidelines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
What You Should See. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
Extra Credit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Continue reading on your phone by scaning this QR Code

 / 58
Tip: The current page has been bookmarked automatically. If you wish to continue reading later, just open the Dertz Homepage, and click on the 'continue reading' link at the bottom of the page.