Skip to content

AnStacy/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Snake Game

GitHub last commit GitHub repo size

A modern, minimalistic implementation of the classic Snake Game, built using HTML, CSS, and JavaScript.
Control the snake, eat food, and try to survive as long as possible!

Play the game here ๐Ÿ‘‰ Live Demo

Example task item

โœจ Features

  • ๐ŸŽฎ Keyboard controls for intuitive gameplay
  • ๐Ÿ“ฑ Touch controls for mobile
  • ๐ŸŽ Food appears randomly on the grid
  • ๐Ÿ’ฅ Game over on collision with walls or self
  • ๐Ÿ• Real-time score tracking
  • ๐Ÿ’พ Minimalist, responsive design for desktop & mobile

๐Ÿง  How It Works

The snake moves continuously on a grid-based canvas.
Each time it eats a food item:

  • Its body grows
  • A new food appears in a random position

Game ends when the snake hits a wall or itself.

๐Ÿ› ๏ธ Tech Stack

  • HTML5 โ€“ Game structure
  • CSS3 โ€“ Grid layout and styling
  • JavaScript (ES6) โ€“ Core game logic, rendering, and interaction

๐Ÿšง Future Improvements

  • ๐Ÿ† High score tracking (local storage)
  • ๐ŸŽจ Custom themes or skins
  • ๐ŸŽถ Sound effects and background music

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published