Summary
Although not quite the longest, this was probably the chapter where we covered the most C++. We looked at the different types of loops we can use, like for and while loops. We studied arrays for handling large amounts of variables and objects without breaking a sweat. We also learned about enumerations and switch. Probably the biggest concept in this chapter was functions, which allow us to organize and abstract our game’s code. We will be looking more deeply at functions in a few more places as the book continues.
Now that we have a fully “working” tree, we can finish the game in the last chapter of this project.
Here are some things that might be on your mind.