You learned a lot in this chapter. You've learned several kinds of branching structures, including the if clause, else statements, and the switch structure. You know how to write functions, which make your programs much more efficient and easier to read. You know how to pass parameters to functions and return values from them. You can access global variables from inside functions. You've put all these things together to make an interesting game. You should be very proud! In the next chapter, you'll learn how to use looping structures to make your programs even more powerful.