Skip to content

The Snake Game using HTML, CSS and JavaScript. In game snake is control by keyboard key and when it's eat food than it's size increase and you score to. If snake touch board of ground than game is over.

Notifications You must be signed in to change notification settings

udaygiri/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Snake Game

Welcome to The Snake Game, a classic game reinvented using modern web technologies including HTML, CSS, and JavaScript. Dive into nostalgia with this simple yet engaging game, where the primary goal is to control a snake to eat food scattered around the game area. With each piece of food consumed, the snake grows in length, and your score increases. But beware! The game ends if the snake touches the borders of the playground.

image

Features

  • Smooth Controls: Use keyboard arrow keys to navigate the snake across the playground.
  • Score Tracking: Keep an eye on your score - it increases with each piece of food the snake eats.
  • Dynamic Snake Growth: The snake grows in length with every piece of food, increasing the game's challenge.
  • Boundary Collision: Test your skills by avoiding collisions with the game area borders, or it's game over!

How to Play

  1. Start the Game: Open index.html in your favorite web browser to start the game.
  2. Control the Snake: Use the , , , (arrow keys) on your keyboard to control the snake's direction.
  3. Eat Food: Guide the snake to the food. Each piece of food eaten increases your score and the length of the snake.
  4. Avoid the Edges: Keep the snake within the play area. The game ends if you touch the borders.

Installation

No installation is required! Just clone the repository and open index.html in your web browser.

git clone https://github.com/udaygiri/TheSnakeGame.git
cd TheSnakeGame
open index.html

About

The Snake Game using HTML, CSS and JavaScript. In game snake is control by keyboard key and when it's eat food than it's size increase and you score to. If snake touch board of ground than game is over.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published