Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 607 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 607 Bytes

Snake Game

A classic Snake game implementation using HTML5 Canvas and JavaScript.

Features

  • Responsive canvas-based gameplay
  • Score tracking
  • Collision detection
  • Keyboard controls

How to Play

  1. Use arrow keys to control the snake:

    • ↑ Up arrow: Move up
    • ↓ Down arrow: Move down
    • ← Left arrow: Move left
    • → Right arrow: Move right
  2. Eat the red food to grow and increase your score

  3. Avoid hitting the walls or yourself

  4. Try to achieve the highest score possible!

Setup

Simply open index.html in a web browser to start playing.