This is a nice example for making a game. Although it is not for the beginners but it shows the nice use of function and looping. Also a screenshot is given that gives the idea about the how output looks like. Hence it is easy to understand the program.