Skip to content

This is a simple Java-based implementation of the classic Snake Game, where the player controls a growing snake on a grid. The objective is to eat the food that appears randomly on the screen, which increases the snakeโ€™s length and score.

License

Notifications You must be signed in to change notification settings

GOLLAPUDI-PRIYANKA/Snake-Game-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Snake Game (Java)

A simple implementation of the classic Snake Game written in pure Java.
The project contains only two source files and is perfect for beginners learning logic, loops, and basic game development.


๐Ÿ“‚ Project Structure

src/ โ”œโ”€โ”€ Main.java โ””โ”€โ”€ SnakeGame.java README.md LICENSE screenshots/

Run using IDE

Import the project

Place both .java files in src/

Run Main.java

๐ŸŽฎ Controls

โฌ† Up Arrow โ€” Move Up

โฌ‡ Down Arrow โ€” Move Down

โฌ… Left Arrow โ€” Move Left

โžก Right Arrow โ€” Move Right

๐Ÿ›  Requirements

Java JDK 8+

About

This is a simple Java-based implementation of the classic Snake Game, where the player controls a growing snake on a grid. The objective is to eat the food that appears randomly on the screen, which increases the snakeโ€™s length and score.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages