Chapter 29. Enumerations and Finishing the Snake Game
Welcome to the final chapter of the book and the last Java topic. We will first learn about Java enumerations and then we will put them straight to work in helping us to finish the Snake game.
In this chapter, we'll cover following topics:
- Learn about Java enumerations
- Add sound to the project
- Code the Snake class
- Finish the Snake game
Note
All the code and assets for this project are in the Chapter 28
folder of the download bundle. Note that for this project, the completed game, as it will be by completing the steps up to the end of this chapter, is in the Chapter 28
folder. There is no separate code bundle for this chapter.
First, enumerations.