Skip to content

Recreation of the classic snake game using HTML, CSS and JavaScript

Notifications You must be signed in to change notification settings

ammar-jesliy/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classic Snake Game

Welcome to the Classic Snake Game! This project recreates the iconic Snake game using HTML, CSS, and JavaScript. Relive the nostalgia of the classic game where you control a snake, guiding it to eat food and grow longer without colliding into walls or itself.

Gameplay

  • Controls: Use the arrow keys (Up, Down, Left, Right) to control the direction of the snake.
  • Objective: Guide the snake to eat food pellets scattered throughout the game board. Each time the snake eats a pellet, it grows longer.
  • Game Over: The game ends if the snake collides with the walls or itself.
  • Scoring: Score points for each pellet eaten. Try to achieve the highest score possible!

Features

  • Responsive Design: The game is built with responsive design principles, allowing it to adapt to various screen sizes and devices.
  • Dynamic Gameplay: Experience smooth and dynamic gameplay with intuitive controls.
  • Score Tracking: Keep track of your score as you play, striving to beat your previous high score.
  • Endless Fun: Enjoy endless entertainment with the timeless gameplay of the Snake game.

Getting Started

To run the Snake Game locally on your machine, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/ammar-jesliy/snake-game.git
  1. Open the index.html file in your web browser to start playing the game.

Contributing

Contributions are welcome! If you have any suggestions for improvements or would like to report a bug, please feel free to open an issue or submit a pull request.

Acknowledgements

This project was inspired by the classic Snake game and built as a fun project to explore HTML, CSS, and JavaScript. Special thanks to the original creators of the Snake game for their timeless contribution to the world of gaming.

About

Recreation of the classic snake game using HTML, CSS and JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published