Skip to content

A simple and interactive Snake Game built using JavaScript, HTML, and CSS.

License

Notifications You must be signed in to change notification settings

Luk30lende/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake Game built using JavaScript, HTML, and CSS. The game features smooth controls, dynamic movement, and an interactive user experience.

Features

  • Classic Snake Gameplay – Control the snake to eat food and grow longer.
  • Simple Controls – Navigate using arrow keys.
  • Score Tracking – Displays the player's current score.
  • Game Over Logic – Ends the game when the snake collides with itself or the boundaries.

Technologies Used

  • HTML
  • CSS
  • JavaScript

How to Play

  1. Open the index.html file in a browser.
  2. Use the arrow keys to move the snake:
    • Up Arrow – Move Up
    • Down Arrow – Move Down
    • Left Arrow – Move Left
    • Right Arrow – Move Right
  3. Eat food to grow longer and increase your score.
  4. Avoid colliding with the walls or yourself.

Installation

  1. Clone this repository:
    git clone https://github.com/Luk30lende/Snake-Game.git
  2. Navigate to the project directory:
    cd snake-game
  3. Open index.html in your browser.

Contributing

Contributions are welcome! If you'd like to improve the game, feel free to fork the repository and submit a pull request.

License

This project is licensed under the MIT License.

Author