Skip to content

A Java Snake game is a classic arcade-style game where the player controls a snake that moves around a two-dimensional grid. The objective is to eat food items, which causes the snake to grow longer. The game is implemented in Java, often using graphical libraries like Java Swing or JavaFX for the user interface.

Notifications You must be signed in to change notification settings

John12356/JAVA-Snake-console-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNAKE GAME - Java Console App

Introduction

Welcome to the Snake Game, a classic console-based game implemented in Java. This game allows the player to control a snake that grows longer as it consumes food, while avoiding collisions with itself and the walls.

DEMO

Screenshot (71)

Prerequisites

Make sure you have the following installed on your machine:

  • Java Development Kit (JDK)
  • Eclipse (latest version)
  • Git (optional, if you want to clone the repository)

Features

  • Simple Controls: Navigate the snake using arrow keys (up, down, left, right).
  • Scoring: The player earns points for each food item consumed, and the snake grows longer.
  • Game Over Detection: The game ends if the snake collides with the walls or itself.
  • Speed Increase: The game speed increases as the snake grows, making it more challenging.

Getting Started

  1. Clone the Repository:
    git clone https://github.com/John12356/JAVA-Snake-console-game.git
    

How to run

smart-import-1

  • Choose the Clone URI option in the Git import wizard and click Next
  • Confirm the URI, Host and Repository path parameters and click Next
  • Choose the Git branches to clone from the remote repository and click Next
  • Confirm the Directory into which the repository will be cloned and click Next
  • Choose the project to import into Eclipse from GitHub and click Finish

Acknowledgments

We greatly appreciate all contributions to this project. Contributors will be acknowledged in our CONTRIBUTORS.md file. Thank you for your support!

License

This project is licensed under the MIT License. See the LICENSE file for details. License: MIT

Thank You

We appreciate your interest in our project and hope that you find it useful. Your contributions and adherence to the project's license are valuable to us.

About

A Java Snake game is a classic arcade-style game where the player controls a snake that moves around a two-dimensional grid. The objective is to eat food items, which causes the snake to grow longer. The game is implemented in Java, often using graphical libraries like Java Swing or JavaFX for the user interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages