https://github.com/emlag/Y11SnakePro
This project introduces and practices a number of different techniques that are common to software engineering, that is the design and implementation of large software projects. Certainly this assignment can only provide a taste of this important field.
The SnakePro applet is a bigger and more complex beast than you have had to deal with in the past. Before you begin, we provide you with an overview of the software design behind the Applet you will create. Being asked to work within an established codebase is the norm in the “real world”, so this is good practice. The only difference is that this isn’t a large codebase compared to what you’ll see in industry.
The functionality of the application is broken down into multiple classes. There are three main classes that you’ll be using
Before you start you will want to make sure that you have the Java Applet Support plugin for IntelliJ:
First navigate to you preferences:
Next you’ll want to search for the Java Applet Support Plugin, install it and click Apply -> OK.
This project gives a user control over a spam-seeking snake (you can change the food image if you want!). Key presses from the keyboard change the direction of the snake’s movement in order to intersect snacks (spam) that appear at random places on the screen. For each snack consumed, the snake grows by one segment (a segment is simply one BoardCell). Variations are welcome (see the extra credit section below)!
If you want to change the image for the food, replace the current food.gif file in src/main/java/resources with a different image also called food.gif.