An open API service indexing awesome lists of open source software.

https://github.com/tibostr/snake

A snake game written in Java
https://github.com/tibostr/snake

java snake

Last synced: about 2 months ago
JSON representation

A snake game written in Java

Awesome Lists containing this project

README

          

# Snake
A basic snake game written in Java.

## Instructions
Use the arrow keys (`↑`, `→`, `↓`, `←`) to move the snake. Eat apples to gain points and to grow. If you bite your tail, it's game over.

## Running the application
Make sure you are able to run `javac` and `java`. You don't need any external libraries.
1. clone this repository
2. `$ cd snake/src`
3. `$ javac game/Main.java`
4. `$ java game/Main`

Or you can simply execute the JAR file by cloning this repository and typing `cd snake && java -jar snake.jar` into your terminal.

## Screenshot
![snake](screenshot.png)