Skip to content

RiteshS1/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple implementation of the classic Snake game using HTML, CSS, and JavaScript. The player controls a snake that moves around the board, eating food to grow longer while avoiding collisions with itself and the walls.

Features

  • Snake Movement: Control the snake using the arrow keys or WASD.
  • Food Collection: Eat food to grow the snake and increase your score.
  • Game Over Handling: The game ends if the snake collides with itself or the walls, turning the board red for 2 seconds before resetting.
  • Responsive Design: The game is designed to work on both desktop and mobile devices.

Getting Started

Prerequisites

  • A web browser (Chrome, Firefox, etc.)
  • A code editor (optional, for modifications)

Installation

  1. Clone the repository or download the files.
  2. Open index.html in your web browser.

File Structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published