2019 | OriginalPaper | Chapter
6. Making the Raspberry Pi Repeat Itself
Published in:
Python, PyGame, and Raspberry Pi Game Development
Abstract
A video game repeats the action until all the players’ lives have gone, or the end of the game has been reached. So far, we have only written programs that run through a sequence of commands and then terminate. With the use of certain Python keywords, we can get the computer to repeat a block of code when required, either using conditions or for a set number of times.