Guessing Games with Random Numbers and Loops
Paul Vincent Craven · Apress eBooks · 2015
The last step before we start with graphics is learning how to loop a section of code. Most games loop. They repeat the same code over and over. For example, the number guessing game below loops for each guess that the user makes: These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.