https://github.com/emlag/SnakeLite
You will be recreating the classic game Snake, an example of the game running can be seen below.
Get familiar with the files on the project. There are three classes, MainClass.java, Ball.java and Snakepart.java. You will need to implement each one of these to finish the game.
Java was created so that you could create parts of a program individually. Once completed, those parts can then interact with each other to create one program.
Most of your logic will live in the MainClass; this is your GUI class. SnakePart will contain all of the methods necessary for the snake to do its job. The Ball class will be quite simple; it will control where the ball appears and what it looks like.