Jdecho1118 / Snake-Game

A classic Snake game built with HTML for structure, CSS for styling, and JavaScript for interaction. Control the snake, collect food, and avoid collisions to earn points.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Game

Enjoy a classic Snake Game implemented in HTML, CSS, and JavaScript. Navigate the snake to consume food, grow longer, and achieve the highest score possible. Be cautious not to collide with the borders or your own body!

Features

  • Snake Movement: Control the snake's direction using arrow keys (Up, Down, Left, Right).
  • Food Placement: Randomly placed food for the snake to consume and grow.
  • Scoring: Keep track of your score and compete for the highest score.
  • Game Over: Experience a game-over scenario upon collision with borders or self.
  • Restart: Press 'R' to restart the game after reaching a game-over state.

Technologies Used

  • HTML: Provides the structure for the game board.
  • CSS: Styling enhances the visual appeal and layout of the game.
  • JavaScript: Implements game logic, user input handling, and dynamic updates.

How to Play

  1. Use arrow keys (Up, Down, Left, Right) to navigate the snake.
  2. Consume food to grow longer and increase your score.
  3. Avoid collisions with borders and the snake's body.
  4. The game ends when a collision occurs.
  5. Press 'R' to restart the game after a game-over.

Feel free to explore and modify the code to add new features, customize the appearance, or enhance the gameplay based on your preferences. Enjoy the nostalgia of the classic Snake Game!

About

A classic Snake game built with HTML for structure, CSS for styling, and JavaScript for interaction. Control the snake, collect food, and avoid collisions to earn points.


Languages

Language:JavaScript 79.4%Language:CSS 11.3%Language:HTML 9.2%