This is the remastered version of the popular Snake Game realized using the Java Swing classes.
Snake is the common name for a video game concept where the player maneuvers a line which grows in length, with the line itself being a primary obstacle. The concept originated in the 1976 arcade game Blockade, and the ease of implementing Snake has led to hundreds of versions (some of which have the word snake or worm in the title) for many platforms. After a variant was preloaded on Nokia mobile phones in 1998, there was a resurgence of interest in the snake concept as it found a larger audience.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To check if you already have the requirements run the following command(cmd/linux terminal):
- for Java:
java --version
- for Maven:
mvn --version
If you don't have the requirements above mentioned you should follow the following links to install them:
To run the app you should follow the next steps, after installing the requirements. In the root folder of the project type:
mvn install
If the above command succeeds you should have a new folder called target. After this to run the app you should type:
mvn exec:java
To run the unit-tests on your local computer type the following command: mvn test
After running the mvn exec:java
command you should be ready to use the Snake Game developed in this project.
- Maven - build tool
- Java 14 JDK - virtual machine needed to run & compile the Java code
- Visual Studio Code - code editor
- @gabriel-rusu - Idea & Initial work
- @Vulcalien - bug fixes & improvements