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
- Host: GitHub
- URL: https://github.com/tibostr/snake
- Owner: TiboStr
- License: mit
- Created: 2021-09-03T14:36:55.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-06T15:32:23.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T16:11:58.015Z (about 1 year ago)
- Topics: java, snake
- Language: Java
- Homepage:
- Size: 79.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
