Invent Your Own Computer Games with Python by Al Sweigart

Invent Your Own Computer Games with Python by Al Sweigart

Author:Al Sweigart [Sweigart, Al]
Language: eng
Format: azw3, mobi, epub, pdf
ISBN: 9781593277956
Publisher: No Starch Press
Published: 2016-12-07T05:00:00+00:00


Designing the Program

Before trying to understand the source code, play the game a few times to learn what is going on. The Sonar Treasure Hunt game uses lists of lists and other complicated variables, called data structures. Data structures store arrangements of values to represent something. For example, in Chapter 10, a Tic-Tac-Toe board data structure was a list of strings. The string represented an X, an O, or an empty space, and the index of the string in the list represented the space on the board. The Sonar Treasure Hunt game will have similar data structures for the locations of treasure chests and sonar devices.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.