Skip to content

Latest commit

 

History

History
82 lines (48 loc) · 1.92 KB

README.md

File metadata and controls

82 lines (48 loc) · 1.92 KB

Snake Game

image

Welcome to Snake Game! This is a fun game developed using JavaScript, HTML, and CSS, where you control a snake that must eat fruits to grow without crashing into walls or itself.

🚀 Play Now

You can try the game directly in your browser via the following link:

👉 Play Snake Game


🕹️ How to Play

  1. Controls: Use the arrow keys on your keyboard to move the snake:

    • ⬆️ Up Arrow: Move up.
    • ⬇️ Down Arrow: Move down.
    • ⬅️ Left Arrow: Move left.
    • ➡️ Right Arrow: Move right.
  2. Objective:

    • Eat the fruits (squares) to grow the snake and earn points.
    • Avoid crashing into the walls or your own tail.
  3. Game Over: The game ends if the snake crashes into itself or the board's boundaries.


📂 Project Structure

The project is organized into the following files:

  • index.html: Main structure of the game.
  • style.css: Visual styles of the game.
  • script.js: Game logic and event handling.

🛠️ Technologies Used

  • HTML5 for structure.
  • CSS3 for design.
  • JavaScript for game logic.

📸 Screenshots

Add screenshots or gifs of the game in action here to provide a preview for users!


🌟 Features

  • Interactive and easy-to-play design.
  • Increasing difficulty as the snake grows.
  • Fully responsive, works on any modern browser.

🔮 Future Improvements

  • Add difficulty levels.
  • Implement high scores.
  • Add different designs or colors for the snake and the board.

📧 Contact

If you have questions, suggestions, or want to collaborate on the project, feel free to reach out:


Thank you for playing and enjoying Snake Game! 🐍🎮